[Mips]Work around MIPS linker issues exposed by commit r198087 until bug 18360 is...
authorJack Carter <jack.carter@imgtec.com>
Fri, 3 Jan 2014 22:18:43 +0000 (22:18 +0000)
committerJack Carter <jack.carter@imgtec.com>
Fri, 3 Jan 2014 22:18:43 +0000 (22:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198451 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index 1eeadac1989965101426fd11020089a08d929aab..6c7ec02d15481dfcecfcbf66a308536c207a6f1c 100644 (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