diff options
Diffstat (limited to 'gnu')
-rwxr-xr-x | gnu/usr.bin/binutils/ld/genscripts.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gnu/usr.bin/binutils/ld/genscripts.sh b/gnu/usr.bin/binutils/ld/genscripts.sh index 12d6bb5c04c3..20d1022a46fd 100755 --- a/gnu/usr.bin/binutils/ld/genscripts.sh +++ b/gnu/usr.bin/binutils/ld/genscripts.sh @@ -54,11 +54,12 @@ else fi # Set some flags for the emultempl scripts. USE_LIBPATH will -# be set for any libpath-using emulation. -if [ "x${host}" = "x${target}" ] ; then - NATIVE=yes -fi -USE_LIBPATH=yes +# be set for any libpath-using emulation; NATIVE will be set for a +# emulation to enable 'LD_LIBRARY_PATH=/foo:/bar ld -lfooz' + if [ "x${host}" = "x${target}" ] ; then + NATIVE=yes + fi + USE_LIBPATH=yes # Set the library search path, for libraries named by -lfoo. # If LIB_PATH is defined (e.g., by Makefile) and non-empty, it is used. |