From a0b65c7be0c12cb6a931d9bd08941c6ffcfd19ce Mon Sep 17 00:00:00 2001 From: Thomas Quinot Date: Wed, 19 Sep 2007 12:17:39 +0000 Subject: In the case of a native build, set NATIVE to yes so that the code circuits that need to be activated specifically for the case of a native linker actually are enabled. Specifically, this makes ld(1) look for shared libraries in LD_LIBRARY_PATH in the native case, as documented in the man page. PR: gnu/96481 Approved by: re (kensmith) MFC after: 2 weeks --- gnu/usr.bin/binutils/ld/genscripts.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gnu') diff --git a/gnu/usr.bin/binutils/ld/genscripts.sh b/gnu/usr.bin/binutils/ld/genscripts.sh index e606424e3147..12d6bb5c04c3 100755 --- a/gnu/usr.bin/binutils/ld/genscripts.sh +++ b/gnu/usr.bin/binutils/ld/genscripts.sh @@ -55,7 +55,10 @@ fi # Set some flags for the emultempl scripts. USE_LIBPATH will # be set for any libpath-using emulation. - USE_LIBPATH=yes +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. -- cgit v1.2.3