--- wvstreams-4.2.2/configure.ac.orig 2006-05-07 13:28:59.000000000 +0200 +++ wvstreams-4.2.2/configure.ac 2006-05-07 13:31:34.000000000 +0200 @@ -517,16 +517,19 @@ wv_cv_with_qt=no CPPFLAGS_save="$CPPFLAGS" LDFLAGS_save="$LDFLAGS" + LIBS_save="$LIBS" for wv_qtdir in $with_qt $QTDIR $QT_SEARCH_PATH; do eval wv_qtdir="$wv_qtdir" CPPFLAGS="$CPPFLAGS_save -I$wv_qtdir/include -I$wv_qtdir/include/qt3" - LDFLAGS="$LDFLAGS_save -L$wv_qtdir/lib -lqt-mt" + LDFLAGS="$LDFLAGS_save -L$wv_qtdir/lib" + LIBS="$LIBS_save -lqt-mt" AC_TRY_LINK([#include ], [QString x("hello"); return 0; ], [wv_cv_with_qt=$wv_qtdir; break]) done CPPFLAGS="$CPPFLAGS_save" LDFLAGS="$LDFLAGS_save" + LIBS="$LIBS_save" ]) with_qt=$wv_cv_with_qt if test "$with_qt" != no; then --- wvstreams-4.2.2/wvrules.mk.orig 2006-05-07 13:39:44.000000000 +0200 +++ wvstreams-4.2.2/wvrules.mk 2006-05-07 13:41:02.000000000 +0200 @@ -272,7 +272,7 @@ %.so: SONAME=$@$(if $(SO_VERSION),.$(SO_VERSION)) wvsoname=$(if $($1-SONAME),$($1-SONAME),$(if $(SONAME),$(SONAME),$1)) define wvlink_so - $(LINK_MSG)$(WVLINK_CC) $(LDFLAGS) $($1-LDFLAGS) -Wl,-soname,$(call wvsoname,$1) -shared -o $1 $(filter %.o %.a %.so,$2) $($1-LIBS) $(LIBS) $(XX_LIBS) + $(LINK_MSG)$(WVLINK_CC) $(LDFLAGS) $($1-LDFLAGS) -Wl,-soname,$(call wvsoname,$1) -shared -o $1 $(filter %.o %.a,$2) $(filter %.so,$2) $($1-LIBS) $(LIBS) $(XX_LIBS) $(if $(filter-out $(call wvsoname,$1),$1),$(call wvlns,$1,$(call wvsoname,$1))) endef