nixpkgs/pkgs/stdenv/gcc-wrapper.sh
Eelco Dolstra 7ec0df788f * Reduced the size of glibc from 130 to 50 MB.
* Adapted some more packages to use stdenv, "fixed" ld.so problems.
* Added a package for libxslt.

svn path=/nixpkgs/trunk/; revision=204
2003-07-25 14:59:22 +00:00

21 lines
349 B
Bash

#! /bin/sh
IFS=
realgcc=@GCC@
libc=@LIBC@
justcompile=0
for i in $@; do
if test "$i" == "-c"; then
justcompile=1
fi
done
extra=("-isystem" "$libc/include")
if test "$justcompile" != "1"; then
extra=(${extra[@]} "-L" "$libc/lib" "-Wl,-dynamic-linker,$libc/lib/ld-linux.so.2,-rpath,$libc/lib")
fi
exec $realgcc $@ ${extra[@]}