[Lldb-commits] [lldb] r284564 - Trying to fix a few more missing LDFLAGS.
Chris Bieneman via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 18 19:31:32 PDT 2016
Author: cbieneman
Date: Tue Oct 18 21:31:31 2016
New Revision: 284564
URL: http://llvm.org/viewvc/llvm-project?rev=284564&view=rev
Log:
Trying to fix a few more missing LDFLAGS.
Modified:
lldb/trunk/packages/Python/lldbsuite/test/make/Makefile.rules
Modified: lldb/trunk/packages/Python/lldbsuite/test/make/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/make/Makefile.rules?rev=284564&r1=284563&r2=284564&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/make/Makefile.rules (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/make/Makefile.rules Tue Oct 18 21:31:31 2016
@@ -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
More information about the lldb-commits
mailing list