Ticket #23486: g95-UsingTheRightCompiler.diff

File g95-UsingTheRightCompiler.diff, 1021 bytes (added by ryandesign (Ryan Carsten Schmidt), 15 years ago)
  • Portfile

     
    8282        reinplace "s|/usr/bin/libtool|${prefix}/bin/odlibtool|" ${workpath}/gcc-${version_gcc}/gcc/config/darwin.h
    8383        set gcc_configargs "--with-as=${prefix}/bin/odas --with-ld=${prefix}/bin/odld --with-nm=${prefix}/bin/odnm"
    8484    }
    85     system "export CPPFLAGS=\"${configure.cppflags}\"; \
     85    system "export CC=\"${configure.cc}\"; \
     86            export CPPFLAGS=\"${configure.cppflags}\"; \
    8687            export CFLAGS=\"${configure.cflags}\"; \
    8788            export LDFLAGS=\"${configure.ldflags}\"; \
    8889            cd ${workpath}/gcc-${version_gcc}/${name}; \
     
    105106
    106107post-build {
    107108    system "cd ${worksrcpath}/libf95.a-${version}; \
     109           export CC=\"${configure.cc}\"; \
    108110           export CFLAGS=\"${configure.cflags} ${configure.cc_archflags}\"; \
    109111           ./configure --prefix=${prefix} ${buildhost}; \
    110112           make"