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 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 /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 ' 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 > Last, I also removed lots of copy&paste from configure.ac making it > easier to mantain. Looks much better. ======= There is a typo in configure.ac, note _TMP. I didn't commit this. AC_DEFUN([AC_ADDMODULE], ... WXLUA_LDFLAGS="$WXLUA_LDFLAGS -l$_TMP " Thanks, John ------------------------------------------------------------------------- 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