[cig-commits] r7318 - cs/autoconf/trunk

leif at geodynamics.org leif at geodynamics.org
Wed Jun 20 01:55:27 PDT 2007


Author: leif
Date: 2007-06-20 01:55:27 -0700 (Wed, 20 Jun 2007)
New Revision: 7318

Modified:
   cs/autoconf/trunk/cit_petsc.m4
Log:
Remap

    /System/Library/Frameworks/vecLib.framework/vecLib

(slurped from PETSc config) to

    -Wl,-framework,vecLib

so that it won't be eaten by Libtool.


Modified: cs/autoconf/trunk/cit_petsc.m4
===================================================================
--- cs/autoconf/trunk/cit_petsc.m4	2007-06-20 08:39:40 UTC (rev 7317)
+++ cs/autoconf/trunk/cit_petsc.m4	2007-06-20 08:55:27 UTC (rev 7318)
@@ -118,7 +118,12 @@
 
 for key in keys:
     if key[:6] == 'PETSC_':
-        print '%s="%s"' % (key, expand_makefile_vars(str(vars.get(key, '')), vars))
+        value = expand_makefile_vars(str(vars.get(key, '')), vars)
+        if key == 'PETSC_LIB':
+            # Libtool strips the former.  (Does it ever work?)
+            value = value.replace("/System/Library/Frameworks/vecLib.framework/vecLib",
+                                  "-Wl,-framework,vecLib")
+        print '%s="%s"' % (key, value)
     else:
         print 'PETSC_%s="%s"' % (key, expand_makefile_vars(str(vars.get(key, '')), vars))
 



More information about the cig-commits mailing list