Ticket #23486: g95-UsingTheRightCompiler.diff
File g95-UsingTheRightCompiler.diff, 1021 bytes (added by ryandesign (Ryan Carsten Schmidt), 15 years ago) |
---|
-
Portfile
82 82 reinplace "s|/usr/bin/libtool|${prefix}/bin/odlibtool|" ${workpath}/gcc-${version_gcc}/gcc/config/darwin.h 83 83 set gcc_configargs "--with-as=${prefix}/bin/odas --with-ld=${prefix}/bin/odld --with-nm=${prefix}/bin/odnm" 84 84 } 85 system "export CPPFLAGS=\"${configure.cppflags}\"; \ 85 system "export CC=\"${configure.cc}\"; \ 86 export CPPFLAGS=\"${configure.cppflags}\"; \ 86 87 export CFLAGS=\"${configure.cflags}\"; \ 87 88 export LDFLAGS=\"${configure.ldflags}\"; \ 88 89 cd ${workpath}/gcc-${version_gcc}/${name}; \ … … 105 106 106 107 post-build { 107 108 system "cd ${worksrcpath}/libf95.a-${version}; \ 109 export CC=\"${configure.cc}\"; \ 108 110 export CFLAGS=\"${configure.cflags} ${configure.cc_archflags}\"; \ 109 111 ./configure --prefix=${prefix} ${buildhost}; \ 110 112 make"