Hi, John Labenski ha scritto: > On 1/14/08, Francesco Montorsi <[EMAIL PROTECTED]> wrote: >> Hi, >> I've done a big commit on the configure script which should fix all >> problems. The bugs I've found in the configure script were mainly: >> >> 2) linker line was being built incorrectly; with -l option you give >> e.g. "-lmylib" and GNU's ld will search for libmylib.a or >> libmylib.so.x.x.x libraries.... you cannot pass to -l a full library >> name with final .a > > Are you sure that static builds don't link to the .a filename. > > I don't have a static build, but Klaas had this > http://www.pontademangue.com/tmp/config.log indeed static builds produce library file whose suffix is .a; still the -l option of GNU linker doesn't want the "lib" prefix nor the ".a" suffix. GNU linker adds those internally.
If you want to specify to the linker .a files, you can do it without using the -l option... just as for wx libs: > > WX_LIBS='-L/usr/local/lib -pthread > /usr/local/lib/libwx_based_xml-2.8.a > /usr/local/lib/libwx_based_net-2.8.a > /usr/local/lib/libwx_gtk2d_aui-2.8.a these have no -l option in front of them, and thus you need to give full name and final .a > /usr/local/lib/libwx_gtk2d_core-2.8.a /usr/local/lib/libwx_based-2.8.a > -lexpat -pthread -L/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 > -lgdk_pixbuf-2.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 > -lrt -lglib-2.0 -lXinerama -lXxf86vm -lSM -lpng -ljpeg -ltiff -lz -ldl > -lm ' all these have the -l in front and thus, e.g. libpng.a or libpng.so are searched in the library paths... > > That's why I added this to AC_ADDMODULE. > > WX_LIKE_LIBNAME([_TMP], [wxlua], [$2]) > if test "$SHARED" = "1" ; then > WXLUA_LIBS="-l$_TMP $WXLUA_LIBS" > else > WXLUA_LIBS="-l\$top_builddir/lib/lib$_TMP"".a $WXLUA_LIBS" > fi I saw this snippet but this is incorrect for the reasons above, so I reverted the change... > ======= > > There is a typo in configure.ac, note _TMP. I didn't commit this. > > AC_DEFUN([AC_ADDMODULE], > ... > WXLUA_LDFLAGS="$WXLUA_LDFLAGS -l$_TMP " you're right! I'll fix it in a minute; I didn't notice it because it only caused troubles with the PkgConfig file. Francesco ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users