[quagga-dev 8218] [PATCH] build: fix linking position for libcap

Diego Elio Pettenò flameeyes at gmail.com
Sun Sep 5 17:25:59 BST 2010


 * lib/Makefile.am: link libzebra to libcap, since it uses symbols
   from there.
 * zebra/Makefile.am: no need to link libcap here now, since it's not
   used directly (libtool with apply transitive dependencies for
   static linking).

Signed-off-by: Diego Elio Pettenò <flameeyes at gmail.com>
---
 lib/Makefile.am   |    2 +-
 zebra/Makefile.am |    5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/lib/Makefile.am b/lib/Makefile.am
index 315e919..6e69993 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -18,7 +18,7 @@ BUILT_SOURCES = memtypes.h route_types.h
 
 libzebra_la_DEPENDENCIES = @LIB_REGEX@
 
-libzebra_la_LIBADD = @LIB_REGEX@
+libzebra_la_LIBADD = @LIB_REGEX@ $(LIBCAP)
 
 pkginclude_HEADERS = \
 	buffer.h checksum.h command.h filter.h getopt.h hash.h \
diff --git a/zebra/Makefile.am b/zebra/Makefile.am
index 542f36f..d09a209 100644
--- a/zebra/Makefile.am
+++ b/zebra/Makefile.am
@@ -5,7 +5,6 @@ DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -DMULTIPATH_NUM=@MULTIPATH_NUM@
 INSTALL_SDATA=@INSTALL@ -m 600
 
 LIB_IPV6 = @LIB_IPV6@
-LIBCAP = @LIBCAP@
 
 ipforward = @IPFORWARD@
 if_method = @IF_METHOD@
@@ -39,9 +38,9 @@ noinst_HEADERS = \
 	connected.h ioctl.h rib.h rt.h zserv.h redistribute.h debug.h rtadv.h \
 	interface.h ipforward.h irdp.h router-id.h kernel_socket.h
 
-zebra_LDADD = $(otherobj) $(LIBCAP) $(LIB_IPV6) ../lib/libzebra.la
+zebra_LDADD = $(otherobj) ../lib/libzebra.la $(LIB_IPV6)
 
-testzebra_LDADD = $(LIBCAP) $(LIB_IPV6) ../lib/libzebra.la
+testzebra_LDADD = ../lib/libzebra.la $(LIB_IPV6)
 
 zebra_DEPENDENCIES = $(otherobj)
 
-- 
1.7.2.2




More information about the Quagga-dev mailing list