pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[patch] fix libtool errors in textproc/expat



Hi,

on some (but not all, could not find why) of my Linux-based buildhosts,
I get a libtool error while building textproc/expat:

    ===> Building for expat-2.1.1
    /bin/bash ./libtool --verbose --mode=compile cc -std=gnu99 -I./lib -I. -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  -DHAVE_EXPAT_CONFIG_H -o lib/xmlparse.lo -c lib/xmlparse.c
    libtool: compile: unable to infer tagged configuration
    libtool: compile: specify a tag with `--tag'
    *** Error code 1


configure sets @CC@ = "cc -std=gnu99", libtool does not like that ("gcc"
would be fine).

Attached patch adds "--tag=CC" to the libtool invocations.


Regards
Matthias
$NetBSD$

--- Makefile.in.orig	2016-03-29 17:21:51.000000000 +0000
+++ Makefile.in
@@ -120,7 +120,7 @@ LTFLAGS = --verbose
 
 COMPILE = $(CC) $(INCLUDES) $(CFLAGS) $(DEFS) $(CPPFLAGS)
 CXXCOMPILE = $(CXX) $(INCLUDES) $(CXXFLAGS) $(DEFS) $(CPPFLAGS)
-LTCOMPILE = $(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE)
+LTCOMPILE = $(LIBTOOL) $(LTFLAGS) --mode=compile --tag=CC $(COMPILE)
-LINK_LIB = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -no-undefined $(VSNFLAG) -rpath $(libdir) $(LDFLAGS) -o $@
+LINK_LIB = $(LIBTOOL) $(LTFLAGS) --mode=link --tag=CC $(COMPILE) -no-undefined $(VSNFLAG) -rpath $(libdir) $(LDFLAGS) -o $@
-LINK_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) $(LDFLAGS) -o $@
+LINK_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link --tag=CC $(COMPILE) $(LDFLAGS) -o $@
 LINK_CXX_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(CXXCOMPILE) $(LDFLAGS) -o $@


Home | Main Index | Thread Index | Old Index