From 87efd646ffef693235d9d29b005a1467373c51bd Mon Sep 17 00:00:00 2001 From: gdt Date: Wed, 30 Jun 2004 17:36:11 +0000 Subject: Add libtool support. libzebra and libospfapiclient are now built shared, and linked shared with the daemons. This reduces the memory needed when running multiple daemons; each daemon is at least 150k smaller. Static libraries are still built, and libtool should use them on platforms which don't have shared libaries. As with autoconf, the user of a distribution does not need libtool; one just needs that to build from CVS. libospf.a is still a non-shared library, and still installed, not because that makese sense, but because I don't understand why it is the way it is now. Note that the tree was tagged 'libtool-before' just before this commit. --- lib/ChangeLog | 4 ++++ lib/Makefile.am | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/ChangeLog b/lib/ChangeLog index 89ade1ef..8cd79e36 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2004-06-30 Greg Troxel + + * Makefile.am: Make libzebra shared. + 2004-06-21 Paul Jakma * ChangeLog: fix my last update config.h -> zebra.h ;) diff --git a/lib/Makefile.am b/lib/Makefile.am index 45d60ced..eef9570f 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -3,9 +3,9 @@ INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -lib_LIBRARIES = libzebra.a +lib_LTLIBRARIES = libzebra.la -libzebra_a_SOURCES = \ +libzebra_la_SOURCES = \ version.c network.c pid_output.c getopt.c getopt1.c daemon.c \ print_version.c checksum.c vector.c linklist.c vty.c command.c \ sockunion.c prefix.c thread.c if.c memory.c buffer.c table.c hash.c \ @@ -13,9 +13,9 @@ libzebra_a_SOURCES = \ zclient.c sockopt.c smux.c md5.c if_rmap.c keychain.c privs.c \ debug.c sigevent.c pqueue.c -libzebra_a_DEPENDENCIES = @LIB_REGEX@ +libzebra_la_DEPENDENCIES = @LIB_REGEX@ -libzebra_a_LIBADD = @LIB_REGEX@ +libzebra_la_LIBADD = @LIB_REGEX@ pkginclude_HEADERS = \ buffer.h command.h filter.h getopt.h hash.h if.h linklist.h log.h \ -- cgit v1.2.1