Peter Eisentraut wrote:

> The practical impact is probably low, but it's still wrong.

Hm.  If the practical impact is very low, I suppose the best we could
do is to forbid 'cc' as a compiler without --tag.

*investigates*

Seems that upstream libtool does forbid 'cc' as a compiler without
--tag.  The BINCC tag is a Debian-specific feature.

*investigates more*

The intended effect does seem to be that 'cc' would act just like a
synonym for 'gcc', but unfortunately in the loop that scans the
information for each tag to find a match for 'cc', the default
settings for variables like $pic_flag get clobbered.  How about this
patch (untested)?

 debian/rules |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git i/debian/rules w/debian/rules
index f4fb2309..29b6108e 100755
--- i/debian/rules
+++ w/debian/rules
@@ -96,11 +96,9 @@ build-stamp: config-stamp
 
 #      The system libtool script in Debian must be able to support
 #      invoking gcc as cc
-       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 '/^--/d;s/gcc/cc/g' >> libtool
-       echo '# ### END LIBTOOL TAG CONFIG: BINCC' >> libtool
+               | sed -e 's/CONFIG$$/TAG CONFIG: BINCC/g' \
+                     -e 's/"gcc"/"cc"/g' >> libtool
        echo >> libtool
 
 #      The system libtool script in Debian must be able to support



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to