Applied patch from Felix Lee <flee@cygnus.com>:
authorNick Clifton <nickc@redhat.com>
Fri, 9 Jul 1999 03:27:25 +0000 (03:27 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 9 Jul 1999 03:27:25 +0000 (03:27 +0000)
        Fix quoting problem, for bash 2.x

ld/ChangeLog
ld/scripttempl/mcorepe.sc

index 3f3d8d6bbce3ced2751bda22db918fdf087478f3..42f040d43f06416cb5a1116679fa451a061782d9 100644 (file)
@@ -1,3 +1,7 @@
+1999-07-08  Felix Lee  <flee@cygnus.com>
+
+       * scripttempl/mcorepe.sc: fix quoting problem, for bash 2.x
+
 1999-07-08  Jakub Jelinek  <jj@ultra.linux.cz>
 
        * ldfile.c (ldfile_open_file_search): Skip libraries made for
index b9713388fa6284445bdb5922b8204c0c992f7a98..65f770cabfadded8855b57c083dbfb5b76655f2d 100644 (file)
@@ -35,9 +35,16 @@ else
   R_RSRC=
 fi
 
-cat <<EOF
-${RELOCATING+OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
+if test "$RELOCATING"; then
+  # Can't use ${RELOCATING+blah "blah" blah} for this,
+  # because bash 2.x will lose the doublequotes.
+  cat <<EOF
+OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
                           "${LITTLE_OUTPUT_FORMAT}")}
+EOF
+fi
+
+cat <<EOF
 ${LIB_SEARCH_DIRS}
 
 ENTRY(_mainCRTStartup)