[Lldb-commits] [lldb] r183482 - Tweaking Daniel Malea's fixes to Makefile.rules to ensure that we correctly pass -stdlib=libstdc++ to clang when compiling as well as when linking

Enrico Granata egranata at apple.com
Thu Jun 6 18:58:52 PDT 2013


Author: enrico
Date: Thu Jun  6 20:58:52 2013
New Revision: 183482

URL: http://llvm.org/viewvc/llvm-project?rev=183482&view=rev
Log:
Tweaking Daniel Malea's fixes to Makefile.rules to ensure that we correctly pass -stdlib=libstdc++ to clang when compiling as well as when linking
Not doing this was causing link errors as clang was looking for libc++ symbols while linking against libstdc++


Modified:
    lldb/trunk/test/make/Makefile.rules

Modified: lldb/trunk/test/make/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/make/Makefile.rules?rev=183482&r1=183481&r2=183482&view=diff
==============================================================================
--- lldb/trunk/test/make/Makefile.rules (original)
+++ lldb/trunk/test/make/Makefile.rules Thu Jun  6 20:58:52 2013
@@ -118,6 +118,7 @@ ifeq (1,$(USE_LIBSTDCPP))
 	# Clang requires an extra flag: -stdlib=libstdc++
 	ifneq (,$(findstring clang,$(CC)))
 		CFLAGS += -stdlib=libstdc++
+		CXXFLAGS += -stdlib=libstdc++
 		LDFLAGS += -stdlib=libstdc++
 	endif
 endif





More information about the lldb-commits mailing list