nixpkgs/pkgs/stdenv-linux/setup.sh
Eelco Dolstra d6cbd38bfb * Patched Perl's configure script to stop it from scanning well-known system
directories for libraries.  (Fortunately, the build would still fail because
  Perl's idea of "standard" library directories no longer matched that of the
  linker.)

* `stdenv-linux/setup.sh' now puts the path of glibc in an environment
  variable so that it can be used by other packages (for example, we need to
  pass it to Perl's configure, because otherwise it will think that, e.g.,
  libm.so doesn't exist).

svn path=/nixpkgs/trunk/; revision=359
2003-08-26 10:34:51 +00:00

13 lines
382 B
Bash

export PATH=@PATH@
export SHELL=@SHELL@
. @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 -L@GCC@/lib -Wl,-rpath,@GCC@/lib"
export NIX_CC=@CC@
export NIX_CXX=@CXX@
export NIX_LIBC_INCLUDES="@GLIBC@/include"
export NIX_LIBC_LIBS="@GLIBC@/lib"