Hi,

I just tried to compile xchat on a Linux amd64 box, and the linking
problem is present also there. The attached patch configure.in.patch
solves the build problem, at least for linux, kfreebsd and hurd.
Attached is a patch for debian/rules too. autoconf works (with
warnings), putting dh_autoreconf there (or running autoreconf manually)
does not work. Some work is needed to make autoreconf working if needed.

Thanks!
--- a/configure.in	2010-05-30 08:01:16.000000000 +0200
+++ b/configure.in	2014-10-08 12:07:44.097529411 +0200
@@ -445,8 +445,7 @@
 	if test "$have_dl" = yes; then
 		AC_DEFINE(USE_PLUGIN)
 		AC_PATH_PROG(pkgconfigpath, pkg-config)
-		dnl we just need the -Wl,--export-dynamic, but not -lgmodule-2.0
-		RDYNAMIC_FLAGS="`$pkgconfigpath gmodule-2.0 --libs | $sedpath 's/ -lgmodule-2.0//'`"
+		RDYNAMIC_FLAGS="`$pkgconfigpath gmodule-2.0 --libs`"
 		LIBS="$LIBS $RDYNAMIC_FLAGS"
 		if test "$LD" = ""; then
 			VS="`ld --help | grep version-script 2> /dev/null`"
--- a/debian/rules	2012-04-01 18:31:46.000000000 +0200
+++ b/debian/rules	2014-10-08 12:07:06.157529416 +0200
@@ -10,6 +10,7 @@
 
 configure: configure-stamp
 configure-stamp:
+	autoconf
 	[ -f config.sub.d-r-orig ] || cp -p config.sub config.sub.d-r-orig
 	[ -f config.guess.d-r-orig ] || cp -p config.guess config.guess.d-r-orig
 	cp -f /usr/share/misc/config.sub .

Reply via email to