diff options
Diffstat (limited to 'ld/emultempl')
-rw-r--r-- | ld/emultempl/elf32.em | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 183693e..886c7a4 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -836,9 +836,13 @@ gld${EMULATION_NAME}_after_open (void) size_t len; search_dirs_type *search; EOF -if [ "x${USE_LIBPATH}" = xyes ] ; then +if [ "x${NATIVE}" = xyes ] ; then cat >>e${EMULATION_NAME}.c <<EOF const char *lib_path; +EOF +fi +if [ "x${USE_LIBPATH}" = xyes ] ; then +cat >>e${EMULATION_NAME}.c <<EOF struct bfd_link_needed_list *rp; int found; EOF |