[syslog-ng] [Bug 114] configure strips -ldl -lrt for static linking but doesn' t add back with dynamic linking

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Wed Feb 23 10:44:28 CET 2011


https://bugzilla.balabit.com/show_bug.cgi?id=114





--- Comment #1 from Balazs Scheidler <bazsi at balabit.hu>  2011-02-23 10:44:28 ---
thanks for the report.

does this patch help for you?

diff --git a/configure.in b/configure.in
index 89c7cd6..48dfee8 100644
--- a/configure.in
+++ b/configure.in
@@ -479,7 +479,7 @@ if test "$linking_mode" != "dynamic"; then
        GLIB_LIBS=`echo $GLIB_LIBS | tr ' ' '\n' | egrep -v "^(-ldld?)|(-lrt)$" | tr '\n' ' '`

        old_LIBS=$LIBS
-       LIBS="$LD_START_STATIC $GLIB_LIBS $LD_END_STATIC"
+       LIBS="$LD_START_STATIC $GLIB_LIBS $LD_END_STATIC $BASE_LIBS"
        AC_CHECK_FUNC(g_hash_table_new, blb_cv_static_glib=yes, blb_cv_static_glib=no)
        LIBS=$old_LIBS
 fi


I'll commit it if it does.


-- 
Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the syslog-ng mailing list