[142741] trunk/dports/multimedia/x265/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Sat Dec 12 07:02:24 PST 2015


Revision: 142741
          https://trac.macports.org/changeset/142741
Author:   mcalhoun at macports.org
Date:     2015-11-21 08:28:54 -0800 (Sat, 21 Nov 2015)
Log Message:
-----------
x265: workaround for build error on i386 systems (illegal text-relocation)

Modified Paths:
--------------
    trunk/dports/multimedia/x265/Portfile

Modified: trunk/dports/multimedia/x265/Portfile
===================================================================
--- trunk/dports/multimedia/x265/Portfile	2015-11-21 16:27:59 UTC (rev 142740)
+++ trunk/dports/multimedia/x265/Portfile	2015-11-21 16:28:54 UTC (rev 142741)
@@ -3,6 +3,7 @@
 
 PortSystem          1.0
 
+PortGroup           muniversal 1.0
 PortGroup           cmake 1.0
 
 name                x265
@@ -29,3 +30,14 @@
                     port:yasm
 cmake.out_of_source yes
 compiler.blacklist  *llvm-gcc-4.2
+
+#    error: illegal text-relocation to '_x265_pw_1'
+#   report: https://mailman.videolan.org/pipermail/x265-devel/2014-May/004476.html
+# solution: http://lists.apple.com/archives/unix-porting/2008/Jan/msg00027.html
+if {[variant_exists universal] && [variant_isset universal]} {
+    lappend merger_configure_ldflags(i386) -Wl,-read_only_relocs,suppress
+} else {
+    if {${build_arch} eq "i386"} {
+        configure.ldflags-append -Wl,-read_only_relocs,suppress
+    }
+}
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/e946c7c7/attachment.html>


More information about the macports-changes mailing list