diff options
author | thomas <thomas@FreeBSD.org> | 2007-09-19 12:17:39 +0000 |
---|---|---|
committer | thomas <thomas@FreeBSD.org> | 2007-09-19 12:17:39 +0000 |
commit | 3e11a3177ada31adac4b243493967e13b3eda56d (patch) | |
tree | 70d54b07c86ee50272fe42070f2e72e6297eb722 /gnu | |
parent | b6e961b30438235999804f5f13624c670b8c1e10 (diff) | |
download | FreeBSD-src-3e11a3177ada31adac4b243493967e13b3eda56d.zip FreeBSD-src-3e11a3177ada31adac4b243493967e13b3eda56d.tar.gz |
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
Diffstat (limited to 'gnu')
-rwxr-xr-x | gnu/usr.bin/binutils/ld/genscripts.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/ld/genscripts.sh b/gnu/usr.bin/binutils/ld/genscripts.sh index e606424..12d6bb5 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. |