[syslog-ng]syslog-ng 1.9.2/1.6.5 static linking
José Pedro Oliveira
syslog-ng@lists.balabit.hu
Wed, 19 Jan 2005 13:02:26 +0000
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig4ABC46E720338C5D0F1B0B43
Content-Type: multipart/mixed;
boundary="------------020107080101050007080000"
This is a multi-part message in MIME format.
--------------020107080101050007080000
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 8bit
Balazs,
The attachment is a new patch against syslog-1.6.5 configure.in.
It will static link the flex, the tcpwrappers and libnet libraries.
Regards,
jpo
>>Regarding the static linked syslog-ng: would it be possible to
>>do the same for syslog-ng 1.6.5 and the tcp_wrappers library?
>>Please see:
>>https://lists.balabit.hu/pipermail/syslog-ng/2004-October/006559.html
>
>
> the patch there is not correct as you were patching the generated
> configure script, not the original in configure.in.
>
> the solution should be similar to the solution in syslog-ng 1.9, e.g.
> add a -Wl,-static in front of -lwrap and a -Wl,-call_shared afterwards.
>
--
José Pedro Oliveira
* mailto: jpo@di.uminho.pt * http://gsd.di.uminho.pt/~jpo *
* gpg fingerprint = F9B6 8D87 859D 1C94 48F0 84C0 9749 9EB5 91BD 851B *
--------------020107080101050007080000
Content-Type: text/x-patch;
name="syslog-ng-1.6.5+20050117-configure.in.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="syslog-ng-1.6.5+20050117-configure.in.patch"
diff -ruN syslog-ng-1.6.5+20050117-orig/configure.in syslog-ng-1.6.5+20050117/configure.in
--- syslog-ng-1.6.5+20050117-orig/configure.in 2004-08-05 12:49:11.000000000 +0100
+++ syslog-ng-1.6.5+20050117/configure.in 2005-01-19 00:37:50.373986000 +0000
@@ -249,11 +249,11 @@
AC_MSG_CHECKING(whether to enable TCP wrapper support)
if test "x$enable_tcp_wrapper" = "xyes"; then
if test "x$ac_cv_header_tcpd_h" = "xyes" -a "x$blb_cv_c_lwrap" != "x"; then
- LIBS="$LIBS $LIBWRAP_LIBS"
AC_DEFINE(ENABLE_TCP_WRAPPER, 1, [have TCP wrapper lib])
enable_tcp_wrapper=yes
AC_MSG_RESULT(yes)
else
+ LIBWRAP_LIBS=
AC_MSG_RESULT(no)
enable_tcp_wrapper=no
fi
@@ -272,9 +272,10 @@
AC_DEFINE(ENABLE_SPOOF_SOURCE, 1, [enable spoof source support])
CFLAGS="$CFLAGS `$LIBNET_CONFIG --cflags`"
CPPFLAGS="$CPPFLAGS `$LIBNET_CONFIG --defines`"
- LIBS="$LIBS `$LIBNET_CONFIG --libs`"
+ LIBNET_LIBS="`$LIBNET_CONFIG --libs`"
AC_MSG_RESULT(yes)
else
+ LIBNET_LIBS=
AC_ERROR(libnet-config not found)
fi
else
@@ -325,7 +326,7 @@
YFLAGS="-d"
fi
-LIBS="$LIBS $LEXLIB $LIBOL_LIBS"
+LIBS="$LIBS -Wl,-static $LEXLIB $LIBWRAP_LIBS $LIBNET_LIBS -Wl,-call_shared $LIBOL_LIBS"
AC_SUBST(YFLAGS)
AC_SUBST(MAKE_CLASS)
--------------020107080101050007080000--
--------------enig4ABC46E720338C5D0F1B0B43
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFB7lpnl0metZG9hRsRAo9pAJwJ6nNdmugGmkXzcNwMBn7PFgC23wCfXFxA
nUfM8HXGKY6nm54dV6HRI6A=
=G05F
-----END PGP SIGNATURE-----
--------------enig4ABC46E720338C5D0F1B0B43--