Austin English writes:

> I haven't tried doing so yet, been backed up on other projects.  I had
> read that before, and didn't notice the symlink bit. My previous build
> script was:
> 
> #!/bin/bash
> CFLAGS="-I/usr/sfw/include -I/usr/X11/include -g"
> CPPFLAGS="-I/usr/sfw/include"
> CC="/usr/gnu/bin/cc"
> LDFLAGS="-L/usr/sfw/lib -R/usr/sfw/lib -L/usr/X11/lib -R/usr/X11/lib"
> LD="/usr/gnu/bin/ld"
> export CFLAGS
> export LDFLAGS
> export CPPFLAGS
> export CC
> export LD
> ./configure
> make depend
> make
> 
> Adding:
> AS="/usr/gnu/bin/as"
> export AS

This cannot work at all, since /usr/gnu/bin/as doesn't exist (at least on
SX:CE, I cannot speak for Indiana).

> didn't help, nor did:

I'm pretty sure this won't work, you will need to invoke GCC's configure with

--with-gnu-as --with-as=/usr/sfw/bin/gas \
--with-gnu-ld --with-ld=/usr/sfw/bin/gld

> $ pfexec mv /usr/bin/gas /usr/bin/gas.old
> $ pfexec ln -s /usr/gnu/bin/as /usr/bin/gas
> 
> If I need to recompile gcc to test, or try anything else, please let me know.

That will certainly be necessary: GCC determines at build time which
assembler and linker to use and hardcodes both the paths used and some
features of the tools it was configured with.

        Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University

Reply via email to