* Kurt Roeckx wrote on Mon, Jan 02, 2006 at 01:48:24PM CET:
> On Mon, Jan 02, 2006 at 09:39:44AM +0100, Ralf Wildenhues wrote:
> > * John V. Belmonte wrote on Mon, Jan 02, 2006 at 08:22:34AM CET:
> > > 
> > > In a clean sid environment, running libtool with "--mode=link" causes the
> > > following message to be output on sterr:
> > > 
> > >     /usr/bin/libtool: line 606: --: command not found
> > 
> > Could you please rerun the command line with '--debug' added

> I've attached what I get when not using the --tag. 

Thank you.

I can't seem to access the Debian package diffs at the moment, but
searching the web turns up a rule like this in debian/rules:

        echo '# ### BEGIN LIBTOOL TAG CONFIG: BINCC' >> libtool
        sed -n -e '/^# ### BEGIN LIBTOOL CONFIG/,/^# ### END LIBTOOL CONFIG/p' 
< libtool \
                | grep -B 2 -A 1 -e '^LTCC=' -e '^CC=' \
                | sed -e 's/gcc/cc/g' >> libtool
        echo '# ### END LIBTOOL TAG CONFIG: BINCC' >> libtool
        echo >> libtool


grep -A/-B outputs a line with two dashes as separator for matches, if
more than one is found.  This is exposed with 1.5.22, as we backported
LTCFLAGS support to it, and thus LTCC is not immediately followed by CC
any more.

You could change the last sed command to kill those separators:
                | sed '/^--/d;s/gcc/cc/g' >> libtool

Similar applies to BINCXX.

Aside, you should probably include LTCFLAGS in the BINCC tag as well.

Cheers,
Ralf


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to