X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=Makefile.rules;h=6c7ec02d15481dfcecfcbf66a308536c207a6f1c;hb=8ff286445030634b2aba04d7ecd79814a1712a03;hp=1eeadac1989965101426fd11020089a08d929aab;hpb=609ad7ec447f1e6beb8b51085016556cb641a83a;p=oota-llvm.git 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