Mercurial > hg > graal-jvmci-8
comparison make/bsd/makefiles/gcc.make @ 14171:8c0e92c8c45b
more workarounds to support clang 5.1 on Mac OS X
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 13 Mar 2014 14:48:01 +0100 |
parents | f97c5ec83832 |
children | 29ccc4cbabca |
comparison
equal
deleted
inserted
replaced
14170:cdc20b409a9c | 14171:8c0e92c8c45b |
---|---|
334 endif | 334 endif |
335 | 335 |
336 # We want to use libc++ on Clang 5.0 | 336 # We want to use libc++ on Clang 5.0 |
337 ifeq ($(USE_CLANG), true) | 337 ifeq ($(USE_CLANG), true) |
338 # Clang 5.0 | 338 # Clang 5.0 |
339 ifeq ($(shell expr $(CC_VER_MAJOR) = 5 \& $(CC_VER_MINOR) = 0), 1) | 339 ifeq ($(shell expr $(CC_VER_MAJOR) = 5 \& \( $(CC_VER_MINOR) = 0 \| $(CC_VER_MINOR) = 1 \) ), 1) |
340 CFLAGS += -stdlib=libc++ | 340 CFLAGS += -stdlib=libc++ |
341 endif | 341 endif |
342 endif | 342 endif |
343 | 343 |
344 # Flags for generating make dependency flags. | 344 # Flags for generating make dependency flags. |
375 # Enforce prerpocessing of .s files | 375 # Enforce prerpocessing of .s files |
376 ASFLAGS += -x assembler-with-cpp | 376 ASFLAGS += -x assembler-with-cpp |
377 | 377 |
378 #------------------------------------------------------------------------ | 378 #------------------------------------------------------------------------ |
379 # Linker flags | 379 # Linker flags |
380 | |
381 # Ensure use libstdc++ on clang, not libc++ | |
382 ifeq ($(USE_CLANG), true) | |
383 LFLAGS += -stdlib=libstdc++ | |
384 endif | |
380 | 385 |
381 # statically link libstdc++.so, work with gcc but ignored by g++ | 386 # statically link libstdc++.so, work with gcc but ignored by g++ |
382 STATIC_STDCXX = -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic | 387 STATIC_STDCXX = -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic |
383 | 388 |
384 ifeq ($(USE_CLANG),) | 389 ifeq ($(USE_CLANG),) |