[Mips]Work around MIPS linker issues exposed by commit r198087 until bug 18360 is resolved

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198451 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jack Carter 2014-01-03 22:18:43 +00:00
parent 609ad7ec44
commit 8ff2864450

View File

@ -611,9 +611,11 @@ endif
# By default, strip dead symbols at link time
ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
ifneq ($(HOST_OS),Darwin)
ifneq ($(HOST_ARCH),Mips)
CXX.Flags += -ffunction-sections -fdata-sections
endif
endif
endif
ifndef NO_DEAD_STRIP
ifeq ($(HOST_OS),Darwin)
LD.Flags += -Wl,-dead_strip