[151301] trunk/dports/lang/sbcl/Portfile

easieste at macports.org easieste at macports.org
Fri Aug 12 02:35:19 PDT 2016


Revision: 151301
          https://trac.macports.org/changeset/151301
Author:   easieste at macports.org
Date:     2016-08-12 02:35:19 -0700 (Fri, 12 Aug 2016)
Log Message:
-----------
lang/sbcl: change linking options for XCode 8

<https://trac.macports.org/attachment/ticket/51733/>

This change is required as the Xcode 8 linker now defaults to PIE
binaries regardless of the deployment target so an explicit
'-Wl,-no_pie' is now required. The rbcl program is incompatible with
ASLR and the previous upstream hack of setting the deployment target
to less than 10.7 doesn't prevent the PIE executables from being
created against the Xcode 8 linker. Tested on 10.11 with Xcode 8 beta.

Modified Paths:
--------------
    trunk/dports/lang/sbcl/Portfile

Modified: trunk/dports/lang/sbcl/Portfile
===================================================================
--- trunk/dports/lang/sbcl/Portfile	2016-08-12 08:15:43 UTC (rev 151300)
+++ trunk/dports/lang/sbcl/Portfile	2016-08-12 09:35:19 UTC (rev 151301)
@@ -65,6 +65,17 @@
 post-patch {
     reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \
         ${worksrcpath}/doc/sbcl.1
+    # <https://trac.macports.org/attachment/ticket/51733/>
+    # This change is required as the Xcode 8 linker now defaults to
+    # PIE binaries regardless of the deployment target so an explicit
+    # '-Wl,-no_pie' is now required. The rbcl program is incompatible
+    # with ASLR and the previous upstream hack of setting the
+    # deployment target to less than 10.7 doesn't prevent the PIE
+    # executables from being created against the Xcode 8
+    # linker. Tested on 10.11 with Xcode 8 beta.
+    if {[vercmp "8.0" ${xcodeversion}] >= 0} { 
+        reinplace "s|0x100000|0x100000 -Wl,-no_pie|g" ${worksrcpath}/src/runtime/Config.x86-64-darwin 
+    } 
 }
 
 use_configure   no
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160812/323a0993/attachment.html>


More information about the macports-changes mailing list