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

llvm-svn: 198451
This commit is contained in:
Jack Carter 2014-01-03 22:18:43 +00:00
parent 4b79247750
commit 5b3d51c7fb

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