comparison make/bsd/makefiles/gcc.make @ 14523:4823ccaf5023

removed unnecessary LFLAGS adjustment for clang
author Doug Simon <doug.simon@oracle.com>
date Thu, 13 Mar 2014 21:15:13 +0100
parents 29ccc4cbabca
children b51e29501f30 4ca6dc0799b6
comparison
equal deleted inserted replaced
14522:7c36ec150036 14523:4823ccaf5023
375 ASFLAGS += -x assembler-with-cpp 375 ASFLAGS += -x assembler-with-cpp
376 376
377 #------------------------------------------------------------------------ 377 #------------------------------------------------------------------------
378 # Linker flags 378 # Linker flags
379 379
380 # Ensure use libstdc++ on clang, not libc++
381 ifeq ($(USE_CLANG), true)
382 LFLAGS += -stdlib=libstdc++
383 endif
384
385 # statically link libstdc++.so, work with gcc but ignored by g++ 380 # statically link libstdc++.so, work with gcc but ignored by g++
386 STATIC_STDCXX = -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic 381 STATIC_STDCXX = -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
387
388 # Ensure use libstdc++ on clang, not libc++
389 ifeq ($(USE_CLANG), true)
390 LFLAGS += -stdlib=libstdc++
391 endif
392 382
393 ifeq ($(USE_CLANG),) 383 ifeq ($(USE_CLANG),)
394 # statically link libgcc and/or libgcc_s, libgcc does not exist before gcc-3.x. 384 # statically link libgcc and/or libgcc_s, libgcc does not exist before gcc-3.x.
395 ifneq ("${CC_VER_MAJOR}", "2") 385 ifneq ("${CC_VER_MAJOR}", "2")
396 STATIC_LIBGCC += -static-libgcc 386 STATIC_LIBGCC += -static-libgcc