mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
7ec0df788f
* Adapted some more packages to use stdenv, "fixed" ld.so problems. * Added a package for libxslt. svn path=/nixpkgs/trunk/; revision=204
21 lines
349 B
Bash
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[@]}
|