]> git.proxmox.com Git - mirror_frr.git/commitdiff
(somewhat unrelated cleanups, but all are very minor)
authorgdt <gdt>
Fri, 23 Jul 2004 16:23:56 +0000 (16:23 +0000)
committergdt <gdt>
Fri, 23 Jul 2004 16:23:56 +0000 (16:23 +0000)
2004-07-23  Greg Troxel  <gdt@poblano.ir.bbn.com>

* */Makefile.am: Use ../dir/libfoo.la, rather than "-L../dir
-lfoo", to avoid linking against installed libraries from a
previous version.

* {lib,ospfd,ospfclient}/Makefile.am: explicitly define the shared
library version number to be 0.0

* configure.ac: remove spurious , so extract.pl is chmod'd +x.

* HACKING: explain shared library versioning rules

14 files changed:
ChangeLog
HACKING
bgpd/Makefile.am
configure.ac
guile/Makefile.am
isisd/Makefile.am
lib/Makefile.am
ospf6d/Makefile.am
ospfclient/Makefile.am
ospfd/Makefile.am
ripd/Makefile.am
ripngd/Makefile.am
vtysh/Makefile.am
zebra/Makefile.am

index fde19bcf6ff3da9998f6bedad1c76eba0005ebda..6c47a15f0c5b08c6574e8a77690fe5a512454f27 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2004-07-23  Greg Troxel  <gdt@poblano.ir.bbn.com>
+
+       * */Makefile.am: Use ../dir/libfoo.la, rather than "-L../dir
+       -lfoo", to avoid linking against installed libraries from a
+       previous version.
+
+       * {lib,ospfd,ospfclient}/Makefile.am: explicitly define the shared
+       library version number to be 0.0
+
+       * configure.ac: remove spurious , so extract.pl is chmod'd +x.
+       
+       * HACKING: explain shared library versioning rules
+       
 2004-07-22 Paul Jakma <paul@dishone.st>
 
        * configure.ac: modify default CFLAGS to be compiler agnostic
diff --git a/HACKING b/HACKING
index 1ffdab8761e5fe499a03eecd2b024cad1d10345b..a70b15eefb23598849d40729490ba5e4d4d70354 100644 (file)
--- a/HACKING
+++ b/HACKING
@@ -1,6 +1,6 @@
 -*- mode: text; -*-
 
-$Id: HACKING,v 1.6 2004/05/13 13:38:06 paul Exp $
+$Id: HACKING,v 1.7 2004/07/23 16:23:56 gdt Exp $
 
 GUIDELINES FOR HACKING ON QUAGGA
 
@@ -29,6 +29,28 @@ level.
 [TBD: resolve per-dir vs top-level, perhaps by reading GNU coding
 standards]
 
+SHARED LIBRARY VERSIONING
+
+[this section is at the moment just gdt's opinion]
+
+Quagga builds several shared libaries (lib/libzebra, ospfd/libospf,
+ospfclient/libsopfapiclient).  These may be used by external programs,
+e.g. a new routing protocol that works with the zebra daemon, or
+ospfapi clients.  The libtool info pages (node Versioning) explain
+when major and minor version numbers should be changed.  These values
+are set in Makefile.am near the definition of the library.  If you
+make a change that requires changing the shared library version,
+please update Makefile.am.
+
+libospf exports far more than it should, and is needed by ospfapi
+clients.  Only bump libospf for changes to functions for which it is
+reasonable for a user of ospfapi to call, and please err on the side
+of not bumping.
+
+There is no support intended for installing part of zebra.  The core
+library libzebra and the included daemons should always be built and
+installed together.
+
 PATCH SUBMISSION
 
 * Send a clean diff against the head of CVS in unified diff format, eg by:
index c243bfa598abc6b928ab04aed478af8339ed3b12..842b007a44d31af078e54a40a46e35d9af871c16 100644 (file)
@@ -24,7 +24,7 @@ noinst_HEADERS = \
 bgpd_SOURCES = \
        bgp_main.c $(libbgp_a_SOURCES)
 
-bgpd_LDADD = -L../lib -lzebra @LIBCAP@
+bgpd_LDADD = ../lib/libzebra.la @LIBCAP@
 
 examplesdir = $(exampledir)
 dist_examples_DATA = bgpd.conf.sample bgpd.conf.sample2
index 8eacf476d1b5e856623e3a40b88c6db391e0d294..d8dc03e58d11ad0444e25984dd9a680ea6ce199d 100755 (executable)
@@ -5,7 +5,7 @@
 ##  Copyright (c) 1996, 97, 98, 99, 2000 Kunihiro Ishiguro <kunihiro@zebra.org>
 ##  Portions Copyright (c) 2003 Paul Jakma <paul@dishone.st>
 ##
-## $Id: configure.ac,v 1.56 2004/07/22 18:16:59 paul Exp $
+## $Id: configure.ac,v 1.57 2004/07/23 16:23:56 gdt Exp $
 AC_PREREQ(2.53)
 
 AC_INIT(quagga, 0.96.5, [http://bugzilla.quagga.net])
@@ -1124,8 +1124,9 @@ AC_OUTPUT(Makefile lib/Makefile zebra/Makefile ripd/Makefile
          ospfclient/Makefile
          vtysh/extract.pl
          redhat/Makefile redhat/quagga.spec
-         lib/version.h,
-         tests/Makefile,
+         lib/version.h
+dnl      tests/Makefile
+         ,
          [chmod +x vtysh/extract.pl])
 
 echo "
index b3eab4118b223b8947956052a63727a17ebc9221..ecdb8f32a457867c3fdd5f13c340cd15c1ea4abe 100644 (file)
@@ -6,4 +6,4 @@ DEFS = @DEFS@ -I. -I$(srcdir)
 bin_PROGRAMS = zebra-guile
 zebra_guile_SOURCES = zebra-guile.c zebra-support.c guile-bgp.c
 noinst_HEADERS = zebra-guile.h
-zebra_guile_LDADD = @GUILE_LDFLAGS@ ../bgpd/libbgp.a -L../lib -lzebra
+zebra_guile_LDADD = @GUILE_LDFLAGS@ ../bgpd/libbgp.a ../lib/libzebra.la
index a743449904131e9a8a6d97579eb49cc653fb2336..a403321ebc260e6f2070a7f02c77558c5882f741 100644 (file)
@@ -25,7 +25,7 @@ noinst_HEADERS = \
 isisd_SOURCES = \
        isis_main.c $(libisis_a_SOURCES)
 
-isisd_LDADD = -L../lib -lzebra @LIBCAP@
+isisd_LDADD = ../lib/libzebra.la @LIBCAP@
 
 examplesdir = $(exampledir)
 dist_examples_DATA = isisd.conf.sample
index f49566d4d386bd6832ff930b2126cee21d8cba2b..3b3d5464da04418a81c0d808815724234a2630ab 100644 (file)
@@ -4,6 +4,7 @@ INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib
 DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
 
 lib_LTLIBRARIES = libzebra.la
+libzebra_la_LDFLAGS = -version 0:0:0
 
 libzebra_la_SOURCES = \
        version.c network.c pid_output.c getopt.c getopt1.c daemon.c \
index de183913c47abdbffe89071834c37a3716bb98ac..344bfb2b6ad935270b439ce5b7988e1060022a10 100644 (file)
@@ -22,7 +22,7 @@ noinst_HEADERS = \
 ospf6d_SOURCES = \
        ospf6_main.c $(libospf6_a_SOURCES)
 
-ospf6d_LDADD = -L../lib -lzebra @LIBCAP@
+ospf6d_LDADD = ../lib/libzebra.la @LIBCAP@
 
 examplesdir = $(exampledir)
 dist_examples_DATA = ospf6d.conf.sample
index 6c5a8cdd8e5905cf77a91cc8b34788636d299782..c506846241d2117234057f053032160e0bd24aed 100644 (file)
@@ -3,6 +3,8 @@
 INCLUDES = -I../lib -I../
 
 lib_LTLIBRARIES = libospfapiclient.la
+libospfapiclient_la_LDFLAGS = -version 0:0:0
+
 sbin_PROGRAMS = ospfclient
 
 libospfapiclient_la_SOURCES = \
@@ -17,6 +19,6 @@ ospfclient_SOURCES = \
        ospfclient.c
 
 ospfclient_LDADD = libospfapiclient.la \
-       -L../ospfd -lospf -L../lib -lzebra @LIBCAP@
+       ../ospfd/libospf.la ../lib/libzebra.la @LIBCAP@
 
 
index 68ce526522aabb1cdf7891cd8d888fe534bcaece..fd03334ab4da4e138c0580dc76bea0c2046ae7fc 100644 (file)
@@ -5,6 +5,8 @@ DEFS = @DEFS@ $(LOCAL_OPTS) -DSYSCONFDIR=\"$(sysconfdir)/\"
 INSTALL_SDATA=@INSTALL@ -m 600
 
 lib_LTLIBRARIES = libospf.la
+libospf_la_LDFLAGS = -version 0:0:0
+
 sbin_PROGRAMS = ospfd
 
 libospf_la_SOURCES = \
@@ -27,7 +29,7 @@ noinst_HEADERS = \
 
 ospfd_SOURCES = ospf_main.c
 
-ospfd_LDADD = libospf.la -L../lib -lzebra @LIBCAP@
+ospfd_LDADD = libospf.la ../lib/libzebra.la @LIBCAP@
 
 EXTRA_DIST = OSPF-MIB.txt OSPF-TRAP-MIB.txt ChangeLog.opaque.txt
 
index 505f7b7c38ddb10b6c66bdcee28233bc5e4d4552..49de7f5578724335b23694cd5657eed84642118a 100644 (file)
@@ -17,7 +17,7 @@ noinst_HEADERS = \
 ripd_SOURCES = \
        rip_main.c $(librip_a_SOURCES)
 
-ripd_LDADD = -L../lib -lzebra @LIBCAP@
+ripd_LDADD = ../lib/libzebra.la @LIBCAP@
 
 examplesdir = $(exampledir)
 dist_examples_DATA = ripd.conf.sample
index ecd71f8ab7e4b84fcce49739ff83f260141f7782..6362e4e891d7aac501436baabafc998d4a81e359 100644 (file)
@@ -17,7 +17,7 @@ noinst_HEADERS = \
 ripngd_SOURCES = \
        ripng_main.c $(libripng_a_SOURCES)
 
-ripngd_LDADD = -L../lib -lzebra @LIBCAP@
+ripngd_LDADD = ../lib/libzebra.la @LIBCAP@
 
 examplesdir = $(exampledir)
 dist_examples_DATA = ripngd.conf.sample
index ebc5553290e2036e06f66d984c47268044f46a4b..3467fad9aea88ab9a2b2cf8aff301a10bf1bfdcb 100644 (file)
@@ -11,7 +11,7 @@ vtysh_SOURCES = vtysh_main.c vtysh.c vtysh_user.c vtysh_config.c
 nodist_vtysh_SOURCES = vtysh_cmd.c
 CLEANFILES = vtysh_cmd.c
 noinst_HEADERS = vtysh.h vtysh_user.h
-vtysh_LDADD = -L../lib -lzebra @LIBCAP@
+vtysh_LDADD = ../lib/libzebra.la @LIBCAP@
 
 examplesdir = $(exampledir)
 dist_examples_DATA = vtysh.conf.sample
index 0782894c95514de3ecca12c4e0c5bdd205de5c94..87a994f13affed1e7a8b134fa9dd264b97b2e4cc 100644 (file)
@@ -30,7 +30,7 @@ noinst_HEADERS = \
        connected.h ioctl.h rib.h rt.h zserv.h redistribute.h debug.h rtadv.h \
        interface.h ipforward.h irdp.h
 
-zebra_LDADD = $(otherobj) $(LIBCAP) $(LIB_IPV6) -L../lib -lzebra
+zebra_LDADD = $(otherobj) $(LIBCAP) $(LIB_IPV6) ../lib/libzebra.la
 
 zebra_DEPENDENCIES = $(otherobj)
 
@@ -42,8 +42,8 @@ EXTRA_DIST = if_ioctl.c if_ioctl_solaris.c if_netlink.c if_proc.c \
        ioctl.c ioctl_solaris.c \
        GNOME-SMI GNOME-PRODUCT-ZEBRA-MIB
 
-#client : client_main.o -L../lib -lzebra
-#      $(CC) -g -o client client_main.o -L../lib -lzebra $(LIBS) $(LIB_IPV6)
+#client : client_main.o ../lib/libzebra.la
+#      $(CC) -g -o client client_main.o ../liblzebra.la $(LIBS) $(LIB_IPV6)
 
 quaggaconfdir = $(sysconfdir)