hotspot/make/bsd/makefiles/gcc.make
changeset 19956 9065fbafee8d
parent 19701 8dfde6242cd1
child 20295 a5dd1b071c32
equal deleted inserted replaced
19955:4700261a6edb 19956:9065fbafee8d
    78 
    78 
    79     HOSTCXX = $(CXX)
    79     HOSTCXX = $(CXX)
    80     HOSTCC  = $(CC)
    80     HOSTCC  = $(CC)
    81   endif
    81   endif
    82 
    82 
    83   AS   = $(CC) -c -x assembler-with-cpp
    83   AS   = $(CC) -c 
    84 endif
    84 endif
    85 
    85 
    86 
    86 
    87 ifeq ($(USE_CLANG), true)
    87 ifeq ($(USE_CLANG), true)
    88   CC_VER_MAJOR := $(shell $(CC) -v 2>&1 | grep version | sed "s/.*version \([0-9]*\.[0-9]*\).*/\1/" | cut -d'.' -f1)
    88   CC_VER_MAJOR := $(shell $(CC) -v 2>&1 | grep version | sed "s/.*version \([0-9]*\.[0-9]*\).*/\1/" | cut -d'.' -f1)
   345   CFLAGS += -DMAC_OS_X_VERSION_MAX_ALLOWED=$(subst .,,$(MACOSX_VERSION_MIN)) \
   345   CFLAGS += -DMAC_OS_X_VERSION_MAX_ALLOWED=$(subst .,,$(MACOSX_VERSION_MIN)) \
   346             -mmacosx-version-min=$(MACOSX_VERSION_MIN)
   346             -mmacosx-version-min=$(MACOSX_VERSION_MIN)
   347   LDFLAGS += -mmacosx-version-min=$(MACOSX_VERSION_MIN)
   347   LDFLAGS += -mmacosx-version-min=$(MACOSX_VERSION_MIN)
   348 endif
   348 endif
   349 
   349 
       
   350 
       
   351 #------------------------------------------------------------------------
       
   352 # Assembler flags
       
   353 
       
   354 # Enforce prerpocessing of .s files
       
   355 ASFLAGS += -x assembler-with-cpp
       
   356 
   350 #------------------------------------------------------------------------
   357 #------------------------------------------------------------------------
   351 # Linker flags
   358 # Linker flags
   352 
   359 
   353 # statically link libstdc++.so, work with gcc but ignored by g++
   360 # statically link libstdc++.so, work with gcc but ignored by g++
   354 STATIC_STDCXX = -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
   361 STATIC_STDCXX = -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic