diff options
author | Nick Clifton <nickc@redhat.com> | 1999-07-09 03:27:25 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 1999-07-09 03:27:25 +0000 |
commit | 7a2746396aba30764c02a0bd35f40fed80a54666 (patch) | |
tree | 8ef715fc7086c592525478d58428e1a27138bb92 /ld/scripttempl | |
parent | a952a37550523872520cc6bd73a1e8aae92128a5 (diff) | |
download | gdb-7a2746396aba30764c02a0bd35f40fed80a54666.zip gdb-7a2746396aba30764c02a0bd35f40fed80a54666.tar.gz gdb-7a2746396aba30764c02a0bd35f40fed80a54666.tar.bz2 |
Applied patch from Felix Lee <flee@cygnus.com>:
Fix quoting problem, for bash 2.x
Diffstat (limited to 'ld/scripttempl')
-rw-r--r-- | ld/scripttempl/mcorepe.sc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ld/scripttempl/mcorepe.sc b/ld/scripttempl/mcorepe.sc index b971338..65f770c 100644 --- a/ld/scripttempl/mcorepe.sc +++ b/ld/scripttempl/mcorepe.sc @@ -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) |