[105686] trunk/dports/lang/rust/Portfile

larryv at macports.org larryv at macports.org
Wed May 1 17:14:29 PDT 2013


Revision: 105686
          https://trac.macports.org/changeset/105686
Author:   larryv at macports.org
Date:     2013-05-01 17:14:29 -0700 (Wed, 01 May 2013)
Log Message:
-----------
rust: Require +universal gcc* and libstdcxx if building with macports-gcc-*.

The libraries for both the i686-apple-darwin and x86_64-apple-darwin targets link to libgcc and libstdc++.

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

Modified: trunk/dports/lang/rust/Portfile
===================================================================
--- trunk/dports/lang/rust/Portfile	2013-05-01 23:21:02 UTC (rev 105685)
+++ trunk/dports/lang/rust/Portfile	2013-05-02 00:14:29 UTC (rev 105686)
@@ -2,6 +2,7 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           active_variants 1.1
 PortGroup           compiler_blacklist_versions 1.0
 
 name                rust
@@ -125,6 +126,11 @@
     if {[string first macports-gcc- ${configure.compiler}] == 0} {
         depends_lib-append      port:${compiler} \
                                 {path:lib/libstdc\\+\\+.6.dylib:libstdcxx}
+
+        # The libs for both targets link to libgcc and libstdc++.
+        require_active_variants ${compiler} universal
+        require_active_variants {path:lib/libstdc\\+\\+.6.dylib:libstdcxx} \
+                                    universal
     } else {
         depends_build-append    port:${compiler}
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130501/eca53fae/attachment.html>


More information about the macports-changes mailing list