From b6d0159755df3b7578d2b794542a4f5cba2b4226 Mon Sep 17 00:00:00 2001 From: Jack Carter Date: Fri, 3 Jan 2014 22:18:43 +0000 Subject: [PATCH] [Mips]Work around MIPS linker issues exposed by commit r198087 until bug 18360 is resolved llvm-svn: 198451 --- Makefile.rules | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.rules b/Makefile.rules index 1eeadac1989..6c7ec02d154 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -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