components/llvm/patches/003-Makefile.rules.patch
changeset 6512 92717ce71105
parent 6511 d283aa33e131
child 6513 ea2097ba7d67
--- a/components/llvm/patches/003-Makefile.rules.patch	Thu Jul 28 16:15:45 2016 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-# Strip unused sections in Solaris.
-# https://llvm.org/bugs/show_bug.cgi?id=24641
---- Makefile.rules	2014-11-04 16:35:15.000000000 -0800
-+++ Makefile.rules	2015-07-17 18:28:25.379220132 -0700
-@@ -638,9 +638,12 @@
-   ifeq ($(HOST_OS),Darwin)
-     LD.Flags += -Wl,-dead_strip
-   else
--    ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
-+    ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW SunOS))
-       LD.Flags += -Wl,--gc-sections
-     endif
-+    ifeq ($(HOST_OS), $(filter $(HOST_OS), SunOS))
-+      LD.Flags += -Wl,-z -Wl,discard-unused=sections
-+    endif
-   endif
- endif
-