Only use libdl when shared builds are enabled (was: Only build iptables-xml)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Philip,


try this one instead.


parent efebafa0021f36f4547b7fcc47620274f333e001 (v1.4.4-2-gefebafa)
commit 906025e7be97f760cd11cc0f93f769f827bf6f70
Author: Jan Engelhardt <jengelh@xxxxxxxxxx>
Date:   Mon Jul 20 11:08:14 2009 +0200

build: only use libdl when shared builds are enabled

Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx>
---
 Makefile.am |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index fd99098..5608bde 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -21,7 +21,10 @@ libiptc_libiptc_la_LDFLAGS = -version-info 0:0:0
 lib_LTLIBRARIES      += libxtables.la
 libxtables_la_SOURCES = xtables.c
 libxtables_la_LDFLAGS = -version-info ${libxtables_vcurrent}:0:${libxtables_vage}
-libxtables_la_LIBADD  = -ldl
+libxtables_la_LIBADD  =
+if ENABLE_SHARED
+libxtables_la_LIBADD += -ldl
+endif
 
 # iptables, dynamic
 iptables_SOURCES          = iptables-standalone.c iptables.c
-- 
# Created with git-export-patch

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux