< prev index next >

make/bsd/makefiles/gcc.make

Print this page
rev 7147 : 8075400: Cannot build hotspot in jdk8u on OSX 10.10 (Yosemite)
Reviewed-by:


 332     DEPFLAGS += -fpch-deps
 333   endif
 334 endif
 335 
 336 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
 337 ifeq ($(USE_PRECOMPILED_HEADER),0)
 338 CFLAGS += -DDONT_USE_PRECOMPILED_HEADER
 339 endif
 340 
 341 ifeq ($(OS_VENDOR), Darwin)
 342   # Setting these parameters makes it an error to link to macosx APIs that are 
 343   # newer than the given OS version and makes the linked binaries compatible even
 344   # if built on a newer version of the OS.
 345   # The expected format is X.Y.Z
 346   ifeq ($(MACOSX_VERSION_MIN),)
 347     MACOSX_VERSION_MIN=10.7.0
 348   endif
 349   # The macro takes the version with no dots, ex: 1070
 350   CFLAGS += -DMAC_OS_X_VERSION_MAX_ALLOWED=$(subst .,,$(MACOSX_VERSION_MIN)) \
 351             -mmacosx-version-min=$(MACOSX_VERSION_MIN)
 352   LDFLAGS += -mmacosx-version-min=$(MACOSX_VERSION_MIN)
 353 endif
 354 
 355 
 356 #------------------------------------------------------------------------
 357 # Assembler flags
 358 
 359 # Enforce prerpocessing of .s files
 360 ASFLAGS += -x assembler-with-cpp
 361 
 362 #------------------------------------------------------------------------
 363 # Linker flags
 364 
 365 # statically link libstdc++.so, work with gcc but ignored by g++
 366 STATIC_STDCXX = -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
 367 
 368 ifeq ($(USE_CLANG),)
 369   # statically link libgcc and/or libgcc_s, libgcc does not exist before gcc-3.x.
 370   ifneq ("${CC_VER_MAJOR}", "2")
 371     STATIC_LIBGCC += -static-libgcc
 372   endif




 332     DEPFLAGS += -fpch-deps
 333   endif
 334 endif
 335 
 336 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
 337 ifeq ($(USE_PRECOMPILED_HEADER),0)
 338 CFLAGS += -DDONT_USE_PRECOMPILED_HEADER
 339 endif
 340 
 341 ifeq ($(OS_VENDOR), Darwin)
 342   # Setting these parameters makes it an error to link to macosx APIs that are 
 343   # newer than the given OS version and makes the linked binaries compatible even
 344   # if built on a newer version of the OS.
 345   # The expected format is X.Y.Z
 346   ifeq ($(MACOSX_VERSION_MIN),)
 347     MACOSX_VERSION_MIN=10.7.0
 348   endif
 349   # The macro takes the version with no dots, ex: 1070
 350   CFLAGS += -DMAC_OS_X_VERSION_MAX_ALLOWED=$(subst .,,$(MACOSX_VERSION_MIN)) \
 351             -mmacosx-version-min=$(MACOSX_VERSION_MIN)
 352   LFLAGS += -mmacosx-version-min=$(MACOSX_VERSION_MIN)
 353 endif
 354 
 355 
 356 #------------------------------------------------------------------------
 357 # Assembler flags
 358 
 359 # Enforce prerpocessing of .s files
 360 ASFLAGS += -x assembler-with-cpp
 361 
 362 #------------------------------------------------------------------------
 363 # Linker flags
 364 
 365 # statically link libstdc++.so, work with gcc but ignored by g++
 366 STATIC_STDCXX = -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
 367 
 368 ifeq ($(USE_CLANG),)
 369   # statically link libgcc and/or libgcc_s, libgcc does not exist before gcc-3.x.
 370   ifneq ("${CC_VER_MAJOR}", "2")
 371     STATIC_LIBGCC += -static-libgcc
 372   endif


< prev index next >