David R. Morrison wrote: > Bill, > > Isn't that going to break on powerpc? > > -- Dave > > > On Sep 6, 2009, at 11:09 PM, William Scott wrote: > >> Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/sci >> In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv9438 >> >> Modified Files: >> mosflm.info >> Log Message: >> fix to force 32-bit compilation on 10.6 when appropriate >> >> Index: mosflm.info >> =================================================================== >> RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/sci/ >> mosflm.info,v >> retrieving revision 1.23 >> retrieving revision 1.24 >> diff -u -d -r1.23 -r1.24 >> --- mosflm.info 7 Sep 2009 02:22:22 -0000 1.23 >> +++ mosflm.info 7 Sep 2009 03:09:19 -0000 1.24 >> @@ -12,6 +12,10 @@ >> CompileScript: << >> #!/bin/zsh -efv >> source %p/bin/init.sh >> +if [[ "%m" != "x86_64" ]]; then >> + perl -pi -e 's|gfortran|gfortran -m32|g' fink_gfortran.zsh >> + perl -pi -e 's|gcc |gcc -m32 |g' fink_gfortran.zsh >> +fi >> source fink_gfortran.zsh >> make >> cd bin
One problem with zsh-based compilescripts on 10.6 is (see the zsh thread I started on this) that the zsh startup script on 10.6 clobbers fink's PATH. I think what should be done is that Fink provides a script or perl function that can be called by the compilescript and that places the right fink path, in particular fink-path-prefix..., in front of PATH. Right now, this PATH surgery is buried deeply in the function Fink::PkgVersion::get_env. This should take care of the right flag for gcc. As for the gfortran flag, Jack H. seems to assert that it shouldn't be necessary, but I am not sure that this is true. -- Martin ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel