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,

On Mon, Apr 30, 2012 at 2:18 AM, Takahiro Kambe 
<taca%back-street.net@localhost> wrote:
> Then, what sould be output under build directory after configure state?
>
> % grep OUTFLAG config.status
> S["COUTFLAG"]="-o "
> S["OUTFLAG"]="-o "

bash-2.05# grep OUTFLAG config.status
S["COUTFLAG"]="-o "
S["OUTFLAG"]="-o

> And output of this script (test2.sh)?

bash-2.05# for s in sh bash ksh pdksh; do $s /tmp/test2.sh; done
| value |
| value |
| value |
| value |
| value |
| value |
| value |
| value |

I think the problem is with the Makefile for the extensions.  The
first time I come up against it is with bug.c.

bash-2.05# grep OUTFLAG ext/-test-/bug-3571/Makefile
OUTFLAG = -o
COUTFLAG = -o
        $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
        $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
        $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
        $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
        $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
        $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
        $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<

If I append $(empty) to OUTFILE and COUTFILE, this compiles.

Making the change in mkmf.rb results in each extension's Makefile
being rendered with a space, and every extension compiles fine.

S.


Home | Main Index | Thread Index | Old Index