fb82bac2fc
Some things don't work: - The ghdl expression (it still needs the gcc 4.3.4 src, ...) - The gnat wrappers need to be more generic - now they work only for the given gnatboot (taken from gentoo) and gnats installed to their $out store path. - Using the cloogppl and ppl. We will need our own gnatboot built with c++ libraries for that. svn path=/nixpkgs/branches/stdenv-updates/; revision=19060
29 lines
996 B
Plaintext
29 lines
996 B
Plaintext
# `-B@out@/bin' forces gcc to use ld-wrapper.sh when calling ld.
|
|
export NIX_CFLAGS_COMPILE="-B@out@/bin/ $NIX_CFLAGS_COMPILE"
|
|
|
|
if test -e @out@/nix-support/libc-cflags; then
|
|
export NIX_CFLAGS_COMPILE="$(cat @out@/nix-support/libc-cflags) $NIX_CFLAGS_COMPILE"
|
|
fi
|
|
|
|
if test -e @out@/nix-support/gcc-cflags; then
|
|
export NIX_CFLAGS_COMPILE="$(cat @out@/nix-support/gcc-cflags) $NIX_CFLAGS_COMPILE"
|
|
fi
|
|
|
|
if test -e @out@/nix-support/gnat-cflags; then
|
|
export NIX_GNATFLAGS_COMPILE="$(cat @out@/nix-support/gnat-cflags) $NIX_GNATFLAGS_COMPILE"
|
|
fi
|
|
|
|
if test -e @out@/nix-support/libc-ldflags; then
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS $(cat @out@/nix-support/libc-ldflags)"
|
|
fi
|
|
|
|
if test -e @out@/nix-support/gcc-ldflags; then
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS $(cat @out@/nix-support/gcc-ldflags)"
|
|
fi
|
|
|
|
if test -e @out@/nix-support/libc-ldflags-before; then
|
|
export NIX_LDFLAGS_BEFORE="$(cat @out@/nix-support/libc-ldflags-before) $NIX_LDFLAGS_BEFORE"
|
|
fi
|
|
|
|
export NIX_GCC_WRAPPER_FLAGS_SET=1
|