gettext, libiconv: dontAddExtraLibs
can be legitimately undefined
This commit is contained in:
parent
545e7518a8
commit
d21a660642
@ -10,7 +10,7 @@ addEnvHooks "$hostOffset" gettextDataDirsHook
|
|||||||
|
|
||||||
# libintl must be listed in load flags on non-Glibc
|
# libintl must be listed in load flags on non-Glibc
|
||||||
# it doesn't hurt to have it in Glibc either though
|
# it doesn't hurt to have it in Glibc either though
|
||||||
if [ -n "@gettextNeedsLdflags@" -a -z "$dontAddExtraLibs" ]; then
|
if [ -n "@gettextNeedsLdflags@" -a -z "${dontAddExtraLibs-}" ]; then
|
||||||
# See pkgs/build-support/setup-hooks/role.bash
|
# See pkgs/build-support/setup-hooks/role.bash
|
||||||
getHostRole
|
getHostRole
|
||||||
export NIX_${role_pre}LDFLAGS+=" -lintl"
|
export NIX_${role_pre}LDFLAGS+=" -lintl"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# it doesn't hurt to have it in Glibc either though
|
# it doesn't hurt to have it in Glibc either though
|
||||||
|
|
||||||
# See pkgs/build-support/setup-hooks/role.bash
|
# See pkgs/build-support/setup-hooks/role.bash
|
||||||
if [ -z "$dontAddExtraLibs" ]; then
|
if [ -z "${dontAddExtraLibs-}" ]; then
|
||||||
getHostRole
|
getHostRole
|
||||||
export NIX_${role_pre}LDFLAGS+=" -liconv"
|
export NIX_${role_pre}LDFLAGS+=" -liconv"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user