1diff --git a/ld/genscripts.sh b/ld/genscripts.sh
2index b6940d376d..0feb1adfd0 100755
3--- a/ld/genscripts.sh
4+++ b/ld/genscripts.sh
5@@ -125,6 +125,9 @@ if test "x$NATIVE" = "xyes" ; then
6 USE_LIBPATH=yes
7 fi
8
9+# TODO: why is this needed?
10+USE_LIBPATH=yes
11+
12 # Set the library search path, for libraries named by -lfoo.
13 # If LIB_PATH is defined (e.g., by Makefile) and non-empty, it is used.
14 # Otherwise, the default is set here.