Problem to configure binutils in bfd/configure -fpic and -fPIC flags...
Andreas Schwab
schwab@suse.de
Mon Mar 4 02:55:00 GMT 2002
Alan Modra <amodra@bigpond.net.au> writes:
|> Note how the sed command merrily strips all spaces, instead of just around
|> the '='. That explains why sh is complaining. I tried to fix this by
|> using:
|>
|> PICFLAG=
|> eval `sed -n -e 's/^[ ]*\(PICFLAG\)[ ]*=[ ]*/\1=/p' < ../libiberty/Makefile`
|>
|> This leads to:
|>
|> /src/binutils-current/bfd/configure: command substitution: line 1: syntax error near unexpected token `bfd-in3.h'
|> /src/binutils-current/bfd/configure: command substitution: line 1: `case '${LIBCFLAGS} ${LIBCXXFLAGS}' in *-fpic* ) echo -fpic ;; Makefile bfd-in3.h confdefs.h config.h config.log config.status doc libtool po stamp-h ) echo -fPIC ;; esac'
|>
|> as the wretched "*" in " * )" gets expanded! Arrgh!!
Try this instead:
PICFLAG=
eval "`sed -n -e 's/^[ ]*\(PICFLAG\)[ ]*=[ ]*/\1=/p' < ../libiberty/Makefile`"
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Binutils
mailing list