j'ai trouvé ça
>Description:
After getting a libtool update to libtool-base-1.4.20010614nb5 from pkgsrc, many packages refuse to build, because the new libtool only recognizes c++ as a tagged configuration. For cc-based packages, the error is
libtool: link: unable to infer tagged configuration
>How-To-Repeat:
Install new libtool, as above
Attempt to build gmake (or another package) from pkgsrc
>Fix:
Added a CC tagged configuration to libtool, using cc instead of g++. Appears to work, but not sure how many other configuration changes I should be making.
>Release-Note:
>Audit-Trail:
>Unformatted:
et j'ai trouvé ça qui semble corriger le pb (une fois le ./configure de gcc fait)
l'exemple est tiré d'un autre soft qui merdoie à la compilation
mais les 2 modifs à faire concernant le --tag=CXX sont les mêmes à priori
Now let's go down to the Makefile that is dying, and
we'll see what's wrong:
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)
$(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES)
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS)
$(CFLAGS)
CFLAGS = -g -O2
CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)
$(AM_CXXFLAGS) $(CXXFLAGS)
LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES)
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXX
FLAGS) $(CXXFLAGS)
CXXFLAGS = -g -O2
CXXLD = $(CXX)
CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS)
$(AM_LDFLAGS) $(LDFLAGS) -o $@
CCLD = $(CC)
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS)
$(AM_LDFLAGS) $(LDFLAGS) -o $@
Now if I go through and add "--tag=CXX" to the C++ lines,
LTCXXCOMPILE = $(LIBTOOL) --mode=compile --tag=CXX $(CXX) $(DEFS)
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)
CXXLINK = $(LIBTOOL) --mode=link --tag=CXX $(CXXLD) $(AM_CXXFLAGS)
$(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
ensuite le classique "make bootstrap" devrait fonctionner
A+
Message édité par Babouchka le 01-07-2002 à 00:05:29