From 8ff286445030634b2aba04d7ecd79814a1712a03 Mon Sep 17 00:00:00 2001 From: Jack Carter Date: Fri, 3 Jan 2014 22:18:43 +0000 Subject: [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 --- Makefile.rules | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile.rules') diff --git a/Makefile.rules b/Makefile.rules index 1eeadac198..6c7ec02d15 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 -- cgit v1.2.3