quagga: fix build when ospfd is disabled
authorBaruch Siach <baruch@tkos.co.il>
Wed, 16 Mar 2016 18:07:10 +0000 (20:07 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 16 Mar 2016 21:41:47 +0000 (22:41 +0100)
ospfclient and ospfapi that gets build by default need libospf, but libospf
doesn't get built when ospfd is disabled. Disable ospfapi in this case.

Fixes:
http://autobuild.buildroot.net/results/918/918f5ced9c7dd59a8fcab654dc8f6d2798515e34/
http://autobuild.buildroot.net/results/edb/edbcb616b6019bced330238228fb5c6f880ab885/
http://autobuild.buildroot.net/results/831/8311f611559b3e7e98860d5a0264db97d4de1a54/

and many more.

[Peter: tweak description]
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/quagga/quagga.mk

index 93c01f9c37f4c3db91a5ddd0f5ae011d2cbfa858..5f0d201fa9ef97266c1f884bf155c86252e275b0 100644 (file)
@@ -25,7 +25,7 @@ QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_ZEBRA),--enable-zebra,--disable-ze
 QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_BGPD),--enable-bgpd,--disable-bgpd)
 QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_RIPD),--enable-ripd,--disable-ripd)
 QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_RIPNGD),--enable-ripngd,--disable-ripngd)
-QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_OSPFD),--enable-ospfd,--disable-ospfd)
+QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_OSPFD),--enable-ospfd,--disable-ospfd --disable-ospfapi)
 QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_OSPF6D),--enable-ospf6d,--disable-ospf6d)
 QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_PIMD),--enable-pimd,--disable-pimd)
 QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_WATCHQUAGGA),--enable-watchquagga,--disable-watchquagga)