[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)
llvm-svn: 198451

llvm/Makefile.rules

index 1eeadac..6c7ec02 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