forked from mirrors/nixpkgs
gcc-wrapper: Style fix
This commit is contained in:
parent
02122ccfd0
commit
0d67d13527
pkgs/build-support/gcc-wrapper
|
@ -14,11 +14,11 @@ if [ -e @out@/nix-support/gnat-cflags ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -e @out@/nix-support/libc-ldflags ]; then
|
if [ -e @out@/nix-support/libc-ldflags ]; then
|
||||||
export NIX_LDFLAGS="$NIX_LDFLAGS $(cat @out@/nix-support/libc-ldflags)"
|
export NIX_LDFLAGS+=" $(cat @out@/nix-support/libc-ldflags)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -e @out@/nix-support/gcc-ldflags ]; then
|
if [ -e @out@/nix-support/gcc-ldflags ]; then
|
||||||
export NIX_LDFLAGS="$NIX_LDFLAGS $(cat @out@/nix-support/gcc-ldflags)"
|
export NIX_LDFLAGS+=" $(cat @out@/nix-support/gcc-ldflags)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -e @out@/nix-support/libc-ldflags-before ]; then
|
if [ -e @out@/nix-support/libc-ldflags-before ]; then
|
||||||
|
|
|
@ -2,15 +2,15 @@ export NIX_GCC=@out@
|
||||||
|
|
||||||
addCVars () {
|
addCVars () {
|
||||||
if [ -d $1/include ]; then
|
if [ -d $1/include ]; then
|
||||||
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -isystem $1/include"
|
export NIX_CFLAGS_COMPILE+=" -isystem $1/include"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d $1/lib64 -a ! -L $1/lib64 ]; then
|
if [ -d $1/lib64 -a ! -L $1/lib64 ]; then
|
||||||
export NIX_LDFLAGS="$NIX_LDFLAGS -L$1/lib64"
|
export NIX_LDFLAGS+=" -L$1/lib64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d $1/lib ]; then
|
if [ -d $1/lib ]; then
|
||||||
export NIX_LDFLAGS="$NIX_LDFLAGS -L$1/lib"
|
export NIX_LDFLAGS+=" -L$1/lib"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue