Revision
105686
Author
larryv@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

Diff

Modified: trunk/dports/lang/rust/Portfile (105685 => 105686)


--- 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}
     }