Fix a bug in IRBuilder that's been there for who knows how long. It
[oota-llvm.git] / 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