Subject: Re: xmms and libtool related question
To: Juan RP <juan@xtraeme.unixbsd.org>
From: Ben Collver <collver1@comcast.net>
List: tech-pkg
Date: 12/21/2003 21:05:00
On Mon, Dec 22, 2003 at 05:33:57AM +0100, Juan RP wrote:
> The problem is with libgcc:
>
> http://news.gw.com/netbsd.tech.userlevel/8958
One thing I notice in that post is:
"You cannot anymore link c++ problems with cc, you need to use g++ because
of the way libgcc_pic.a is resolved right now."
And I see that g++ *is* being used for linking:
http://backyard.homeunix.net:8080/~ben/pkgsrc/xmms-modplug-build4.txt
/bin/sh ../libtool --mode=link c++ -O2 -DDEVICE_NAME="\"/dev/sound\""
-I/usr/pkg/include -I/usr/X11R6/include -fno-exceptions -Wall -ffast-math
-D_REENTRANT -I/usr/pkg/include/glib/glib-1.2 -I/usr/pkg/lib/glib/include
-lm -lossaudio -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib
-L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -o libmodplugxmms.la -rpath
/usr/pkg/lib/xmms/Input -module -avoid-version -lgcc_pic plugin.lo
modplugxmms.lo ./archive/libarchive.la ./gui/libgui.la -L/usr/pkg/lib
-lmodplug -lstdc++ -lm -lintl
c++ -shared -nostdlib /usr/lib/crti.o /usr/lib/crtbeginS.o .libs/plugin.o
.libs/modplugxmms.o -Wl,--whole-archive ./archive/.libs/libarchive.a
./gui/.libs/libgui.a -Wl,--no-whole-archive -Wl,--rpath -Wl,/usr/pkg/lib
-Wl,--rpath -Wl,/usr/pkg/lib
-L/usr/pkgsrc/wip/xmms-modplug/work/.buildlink/lib
-L/usr/pkgsrc/wip/xmms-modplug/work/.buildlink-x11/lib -lgcc_pic
./archive/.libs/libarchive.a -L/usr/bin/../libexec ./gui/.libs/libgui.a
-lossaudio /usr/pkg/lib/libmodplug.so -L/usr/pkg/lib -L/usr/X11R6/lib
/usr/lib/libintl.so -lstdc++ -lm /usr/lib/crtendS.o /usr/lib/crtn.o
-Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib -Wl,-soname
-Wl,libmodplugxmms.so -o .libs/libmodplugxmms.so
Did you end up finding a workaround?
Thank you,
Ben
--
A hacker does for love what others would not do for money.