]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospfclient/subdir.am
Merge pull request #3422 from pguibert6WIND/license_gplv3_rule
[mirror_frr.git] / ospfclient / subdir.am
index df7d85a1f5d810ed637f425fa9d9bee6f0494f32..c05d920d5fb4d9eabd949e887bc5de8a90f3ae54 100644 (file)
@@ -4,7 +4,7 @@
 
 if OSPFCLIENT
 lib_LTLIBRARIES += ospfclient/libfrrospfapiclient.la
-sbin_PROGRAMS += ospfclient/ospfclient
+noinst_PROGRAMS += ospfclient/ospfclient
 man8 += $(MANBUILD)/ospfclient.8
 endif
 
@@ -23,9 +23,21 @@ endif
 
 ospfclient_ospfclient_LDADD = \
        ospfclient/libfrrospfapiclient.la \
-       lib/libfrr.la \
        @LIBCAP@ \
        # end
+
+if STATIC_BIN
+# libfrr is linked in through libfrrospfapiclient.  If we list it here too,
+# it gets linked twice and we get a ton of symbol collisions.
+
+else # !STATIC_BIN
+# For most systems we don't need this, except Debian, who patch their linker
+# to disallow transitive references *while* *als* not patching their libtool
+# to work appropriately.  RedHat has the same linker behaviour, but things
+# work as expected since they also patch libtool.
+ospfclient_ospfclient_LDADD += lib/libfrr.la
+endif
+
 ospfclient_ospfclient_SOURCES = \
        ospfclient/ospfclient.c \
        # end