[SM-Discuss] gcc parallel vs. /opt install

David Brown dmlb2000 at gmail.com
Fri Mar 10 12:36:06 EST 2006


>  I've had a bit of experience in this area at work, where I've had to
> deal with... "difficult" build systems, while cross-compiling (my
> machine is 64-bit but the stuff needs to run on the 32-bit laptops we
> have around).
>  Anyway, I think I worked out a pretty reliable way to give any build
> system the finger and compile using the flags *I* want, which is to
> have gcc as a wrapper script. I have it in ~/bin/gcc, but to work with
> autotools the script probably has to be the main /usr/bin/gcc.

iirc, I eventually did something similar and used (in sorcery)
$TMP_DIR/bin/gcc for the compiler and linked that to the correct
/usr/bin/gcc-${VERSION} the spell required then put $TMP_DIR/bin in
front of the path. Since $TMP_DIR is a process specific temporary
directory under /tmp then sys admins wouldn't see it.

- David Brown



More information about the SM-Discuss mailing list