Revision
61062
Author
ryandesign@macports.org
Date
2009-12-01 07:40:46 -0800 (Tue, 01 Dec 2009)

Log Message

cdf: fix build when build_arch is not x86_64

Modified Paths

Diff

Modified: trunk/dports/science/cdf/Portfile (61061 => 61062)


--- trunk/dports/science/cdf/Portfile	2009-12-01 15:27:00 UTC (rev 61061)
+++ trunk/dports/science/cdf/Portfile	2009-12-01 15:40:46 UTC (rev 61062)
@@ -39,6 +39,7 @@
 
 post-patch	{
 		  reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile
+		  reinplace "s|-lgcc|`${configure.cc} -print-libgcc-file-name`|g" ${worksrcpath}/Makefile
 		  reinplace "s|\\\$(INSTALLDIR)/bin/definitions\\.\\(\[BCK\]\\)|${prefix}/bin/definitions.\\1|" ${worksrcpath}/Makefile
 		}