From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: gas2@cygnus.com Subject: ld/Makefile shell error for --host=sun4-... --target=powerpc-... Date: Mon, 25 Sep 1995 21:46:00 -0000 Message-id: <8kNrjWP02QU6RRPN8q@highland.com.au> X-SW-Source: 1995/msg00171.html Hello, Below is a problem for someone really up on all the Makefile.in/configure scripts. I could include a patch but I suspect that I make break things for another host/target ... :-) In several places in gas-950919/ld/Makefile.in there appears commands like: -n=`echo ld | sed $(program_transform_name)`; \ which with the SunOS-4.1.3u1 shell gives a syntax error (after expansion) of: $ n=`echo ld | sed s,^,powerpc-unknown-eabi,` sed: Illegal or missing delimiter: s, ,powerpc-unknown-eabi,: not found looking in the gas directory the same thing was written as: -n=`echo ld | sed '$(program_transform_name)'`; \ (notice the addition of quotes). fyi, Andrew PS: Below is the example output from a make install. Notice how, even though the above problem occures, it still manages to do a correct install! n=`echo ld | sed s,^,powerpc-unknown-eabi-,;`; \ rm -f /applications/clayton/powerpc-unknown-eabi/bin/ld; \ ln /applications/clayton/bin/$n /applications/clayton/powerpc-unknown-eabi/bin/ld >/dev/null 2>/dev/null \ || /a/puddin/bofh/archive/scratch/clayton/gas-950919/install.sh -c ld.new /applications/clayton/powerpc-unknown-eabi/bin/ld sed: Illegal or missing delimiter: s, sh: ,powerpc-unknown-eabi-,: not found