[53075] trunk/dports/math/atlas/Portfile

jameskyle at macports.org jameskyle at macports.org
Sun Jun 28 20:06:55 PDT 2009


Revision: 53075
          http://trac.macports.org/changeset/53075
Author:   jameskyle at macports.org
Date:     2009-06-28 20:06:55 -0700 (Sun, 28 Jun 2009)
Log Message:
-----------
Dynamically set ld arch....correctly.

Modified Paths:
--------------
    trunk/dports/math/atlas/Portfile

Modified: trunk/dports/math/atlas/Portfile
===================================================================
--- trunk/dports/math/atlas/Portfile	2009-06-29 02:55:32 UTC (rev 53074)
+++ trunk/dports/math/atlas/Portfile	2009-06-29 03:06:55 UTC (rev 53075)
@@ -153,7 +153,13 @@
 
 pre-destroot {
   # We have to manually create the dylib shared libs as the default build does not do this
-  set ld "ld -arch ${os.arch} -dynamic -dylib -single_module -dead_strip -x \
+  if {[string equal "${os.arch}" "powerpc"]} {
+    set myarch "ppc"
+    } {
+      set myarch "i386"
+    }
+  
+  set ld "ld -arch ${myarch} -dynamic -dylib -single_module -dead_strip -x \
           -all_load -L. -L${prefix}/lib/gcc43 -ldylib1.o -dylib_install_name"
   
   system "cd ${workpath}/${name}-${version}/build/lib && \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090628/cc4aa66d/attachment.html>


More information about the macports-changes mailing list