Trying to fix a few more missing LDFLAGS.
authorChris Bieneman <beanz@apple.com>
Wed, 19 Oct 2016 02:31:31 +0000 (02:31 +0000)
committerChris Bieneman <beanz@apple.com>
Wed, 19 Oct 2016 02:31:31 +0000 (02:31 +0000)
llvm-svn: 284564

lldb/packages/Python/lldbsuite/test/make/Makefile.rules

index 68106cf..0451b23 100644 (file)
@@ -423,6 +423,9 @@ ifneq "$(strip $(ARCHIVE_CXX_SOURCES))" ""
        ARCHIVE_OBJECTS +=$(strip $(ARCHIVE_CXX_SOURCES:.cpp=.o))
        CXX = $(call cxx_compiler,$(CC))
        LD = $(call cxx_linker,$(CC))
+  ifeq ($(findstring clang, $(cxx_linker)), clang)
+    LDFLAGS += --driver-mode=g++
+  endif
 endif
 
 #----------------------------------------------------------------------
@@ -440,6 +443,9 @@ ifneq "$(strip $(ARCHIVE_OBJCXX_SOURCES))" ""
        ARCHIVE_OBJECTS +=$(strip $(ARCHIVE_OBJCXX_SOURCES:.mm=.o))
        CXX = $(call cxx_compiler,$(CC))
        LD = $(call cxx_linker,$(CC))
+  ifeq ($(findstring clang, $(cxx_linker)), clang)
+    LDFLAGS += --driver-mode=g++
+  endif
        ifeq "$(findstring lobjc,$(LDFLAGS))" ""
                LDFLAGS +=-lobjc
        endif