equal
deleted
inserted
replaced
1 # Strip unused sections in Solaris. |
|
2 # https://llvm.org/bugs/show_bug.cgi?id=24641 |
|
3 --- Makefile.rules 2014-11-04 16:35:15.000000000 -0800 |
|
4 +++ Makefile.rules 2015-07-17 18:28:25.379220132 -0700 |
|
5 @@ -638,9 +638,12 @@ |
|
6 ifeq ($(HOST_OS),Darwin) |
|
7 LD.Flags += -Wl,-dead_strip |
|
8 else |
|
9 - ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW)) |
|
10 + ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW SunOS)) |
|
11 LD.Flags += -Wl,--gc-sections |
|
12 endif |
|
13 + ifeq ($(HOST_OS), $(filter $(HOST_OS), SunOS)) |
|
14 + LD.Flags += -Wl,-z -Wl,discard-unused=sections |
|
15 + endif |
|
16 endif |
|
17 endif |
|
18 |
|