nixpkgs/pkgs/stdenv-linux/setup-nativetools.sh
Eelco Dolstra 3467585b1b * Split off the native build init into setup-nativetools.sh.
* Add the $gcc/lib to the library path in the Nixified stdenv.  (This
  include libgcc.so and libstdc++.so.)

svn path=/nixpkgs/trunk/; revision=340
2003-08-22 13:42:21 +00:00

10 lines
307 B
Bash

export PATH=/usr/local/bin:/usr/bin:/bin
export SHELL=/bin/sh
. @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"
export NIX_CC=/usr/bin/gcc
export NIX_CXX=/usr/bin/g++