40bc2cc9b6
where we don't use any tools from outside the Nix environment. For this we need the basic POSIX utilities (e.g., GNU coreutils), a shell, GCC, and the binutils. Normal packages just need to include stdenv/stdenv.fix, which on Linux will use the Nixified environment. However, for the tools in the build environment itself we have a bootstrapping problem. Therefore, these depend on the external environment (and include stdenv-linux/stdenv-nativetools). The package `baseenv' provides some generic setup and GCC wrappers used by both fully Nixified and native environments. svn path=/nixpkgs/trunk/; revision=305
11 lines
318 B
Bash
11 lines
318 B
Bash
. @BASEENV@/setup
|
|
|
|
export NIX_CFLAGS="-isystem @GLIBC@/include $NIX_CFLAGS"
|
|
export NIX_LDFLAGS="-L @GLIBC@/lib -Wl,-dynamic-linker,@GLIBC@/lib/ld-linux.so.2,-rpath,@GLIBC@/lib $NIX_LDFLAGS"
|
|
|
|
if test "@NATIVETOOLS@"; then
|
|
export PATH=$PATH:/usr/local/bin:/usr/bin:/bin
|
|
else
|
|
export PATH=@COREUTILS@/bin:$PATH
|
|
fi
|