* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
authorKaz Kojima <kkojima@rr.iij4u.or.jp>
Wed, 16 Feb 2005 05:10:02 +0000 (05:10 +0000)
committerKaz Kojima <kkojima@rr.iij4u.or.jp>
Wed, 16 Feb 2005 05:10:02 +0000 (05:10 +0000)
lib_path if NATIVE is yes.

ld/ChangeLog
ld/emultempl/elf32.em

index 97c7d9826b38367dce8331a1320455befe200d9a..7138eda17dbef5c0b3c6d5091985d05806b8f1c9 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
+
+       * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
+       lib_path if NATIVE is yes.
+
 2005-02-16  Alan Modra  <amodra@bigpond.net.au>
 
        * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
index 183693ea809dabf75e300eef36b9c32bacd88158..886c7a44a955f680ea9403fc86129323d3f16b42 100644 (file)
@@ -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