pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Ruby builds - Sun assembler intolerant of spaces
Hi,
In message
<CABqtqVSPEOiQGvQikDW+Jgba9VSqiNJUqvO0YtBOK_i8gcY2Ew%mail.gmail.com@localhost>
on Mon, 30 Apr 2012 00:31:45 +0100,
Stephen Nelson-Smith <sanelson%gmail.com@localhost> wrote:
> The Makefile generation code is in lib/mkmf.rb. If you find the
> COMPILE_C and COMPILE_CXX constants, you'll see that they explicitly
> do not add a space between $(COUTFLAG) and $@.
COUTFLAG came from configure script:
: ${OUTFLAG='-o '}
: ${COUTFLAG=${OUTFLAG}}
If you execute this sciprt (test.sh), what would be output?
----------------------------------------------------------------
#!/bin/sh
: ${OUTFLAG='-o '}
: ${COUTFLAG=${OUTFLAG}}
echo "|${OUTFLAG}|"
echo "|${COUTFLAG}|"
----------------------------------------------------------------
Expected output is:
% sh test.sh
|-o |
|-o |
But you might be see without space.
And what about execute with ksh?
% ksh test.sh
Best regards.
--
Takahiro Kambe <taca%back-street.net@localhost>
Home |
Main Index |
Thread Index |
Old Index