* Oops.
svn path=/nixpkgs/trunk/; revision=365
This commit is contained in:
parent
fe43aeafdc
commit
a291f2a94e
17
pkgs/baseenv/ld-wrapper.sh
Normal file
17
pkgs/baseenv/ld-wrapper.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#! /bin/sh
|
||||
|
||||
IFS=" "
|
||||
extra=($NIX_CFLAGS_LINK $NIX_LDFLAGS)
|
||||
if test "$NIX_STRIP_DEBUG" == "1"; then
|
||||
extra=(${extra[@]} -s)
|
||||
fi
|
||||
|
||||
if test "$NIX_DEBUG" == "1"; then
|
||||
echo "extra flags to @LD@:" >&2
|
||||
for i in ${extra[@]}; do
|
||||
echo " $i" >&2
|
||||
done
|
||||
fi
|
||||
|
||||
IFS=
|
||||
exec $NIX_LD $@ ${extra[@]}
|
Loading…
Reference in New Issue
Block a user