This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ld/Makefile shell error for --host=sun4-... --target=powerpc-...


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