37 | | reinplace "s|/usr/bin/libtool|${prefix}/bin/odlibtool|" ${workpath}/gcc-${version_gcc}/gcc/config/darwin.h |
38 | | system "unset CPPFLAGS; unset LDFLAGS; \ |
39 | | cd ${workpath}/gcc-${version_gcc}/${name}; \ |
40 | | ../configure --prefix=${prefix}/${gcclib} --enable-languages=c --with-as=${prefix}/bin/odas --with-ld=${prefix}/bin/odld --with-nm=${prefix}/bin/odnm --with-included-gettext; \ |
41 | | make" |
| 37 | if {[variant_isset darwin_9]} { |
| 38 | reinplace "s|i686|i386|" ${workpath}/gcc-${version_gcc}/gcc/config/i386/darwin.h |
| 39 | reinplace "s|tjmp %%edx|tjmp *%%edx|" ${workpath}/gcc-${version_gcc}/gcc/config/i386/i386.c |
| 40 | set gcc_configargs "--with-as=/usr/bin/as --with-ld=/usr/bin/ld --with-nm=/usr/bin/nm" |
| 41 | } else { |
| 42 | reinplace "s|/usr/bin/libtool|${prefix}/bin/odlibtool|" ${workpath}/gcc-${version_gcc}/gcc/config/darwin.h |
| 43 | set gcc_configargs "--with-as=${prefix}/bin/odas --with-ld=${prefix}/bin/odld --with-nm=${prefix}/bin/odnm" |
| 44 | } |
| 45 | system "unset CPPFLAGS; unset LDFLAGS; \ |
| 46 | cd ${workpath}/gcc-${version_gcc}/${name}; \ |
| 47 | ../configure --prefix=${prefix}/${gcclib} \ |
| 48 | --enable-languages=c ${gcc_configargs} --with-included-gettext \ |
| 49 | --with-gmp=${prefix} --with-mpfr=${prefix}; \ |
| 50 | make" |