Revision
108528
Author
larryv@macports.org
Date
2013-07-25 13:41:14 -0700 (Thu, 25 Jul 2013)

Log Message

rust: Restore dependency on libstdcxx accidentally removed in r108512.

Modified Paths

Diff

Modified: trunk/dports/lang/rust/Portfile (108527 => 108528)


--- trunk/dports/lang/rust/Portfile	2013-07-25 20:18:01 UTC (rev 108527)
+++ trunk/dports/lang/rust/Portfile	2013-07-25 20:41:14 UTC (rev 108528)
@@ -123,6 +123,15 @@
                         bin:python2:python27
 depends_skip_archcheck  python27
 
+# The libs for both targets link to libgcc and libstdc++.
+if {[regexp {^macports-gcc-(\d\+)\.(\d\+)$} ${configure.compiler} \
+                                            -> major minor]} {
+    depends_lib-append      {path:lib/libstdc\\+\\+\\.6\\.dylib:libstdcxx}
+    require_active_variants gcc${major}${minor} universal
+    require_active_variants {path:lib/libstdc\\+\\+\\.6\\.dylib:libstdcxx} \
+                                universal
+}
+
 # TODO: Test whether i386 machines can cross-compile for x86_64.
 platform darwin i386 {
     set tgts {i686-apple-darwin x86_64-apple-darwin}