On Sat, Oct 07, 2006 at 02:46:01AM +0200, Carlo Wood wrote:
> I wrote a test case, see attached tar ball.
> 
> To run, execute:
> 
> tar xzf bugreport391427.tar.gz
> cd bugreport391427
> ./autoconf.sh
> make
> ./tst

The following patch works for me:
--- Makefile.am.orig    2006-10-07 08:38:24.000000000 +0000
+++ Makefile.am 2006-10-07 08:38:34.000000000 +0000
@@ -2,9 +2,8 @@
 bin_PROGRAMS = tst
 DEFS = -DHAVE_CONFIG_H
 INCLUDES = $(LTDLINCL)
-LIBS = -Linstall/lib -lx
+LIBS = -Linstall/lib -lx $(LIBLTDL)
 tst_SOURCES = tst.c
-tst_LDADD = $(LIBLTDL)

 # Fix broken clean up targets of autotools:


As I said, you want -lx before libltdl on the command line for
libtool/gcc, and you can't expect things to work if they don't.


Kurt



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to