This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Passing `-B', `-isystem' and `-Wl,dynamic-linker' flags
- From: ludo at gnu dot org (Ludovic Courtès)
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 13 Apr 2008 21:07:46 +0200
- Subject: Passing `-B', `-isystem' and `-Wl,dynamic-linker' flags
Hi,
NixOS (http://nixos.org/) is a distribution where packages are always
installed in so-called "non-standard" locations (to give you an idea, it
has no `/lib' and the only file in `/bin' is `sh' :-)).
Thus, when building GCC, `-B' and `-isystem' flags must be passed so
that it finds the libc headers, as well as a `-Wl,-dynamic-linker' flag
to pass the path to the dynamic linker. However, none of the
environment variables supposedly honored by `configure' seem to suffice
to propagate these flags through all the GCC build tree and all the
build stages (currently, NixOS GCC builds circumvent this problems by
hacking around Makefiles).
What's the recommended way to achieve this?
Thanks,
Ludovic.