lldpd: inhibit linking of libbsd on !GLIBC
authorJo-Philipp Wich <jo@mein.io>
Mon, 24 Sep 2018 06:36:10 +0000 (08:36 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 24 Sep 2018 06:36:10 +0000 (08:36 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
package/network/services/lldpd/Makefile

index 02f656a3416f3c44e331216909c7208258f616f2..3605ed25f9232e3166205453c876eabfbacc3dd1 100644 (file)
@@ -85,6 +85,10 @@ define Package/lldpd/conffiles
 /etc/config/lldpd
 endef
 
+CONFIGURE_VARS += \
+       $(if $(CONFIG_USE_GLIBC),,libbsd_CFLAGS=-ldo-not-link-bsd) \
+       $(if $(CONFIG_USE_GLIBC),,libbsd_LDFLAGS=-ldo-not-link-bsd)
+
 CONFIGURE_ARGS += \
        $(if $(CONFIG_LLDPD_WITH_PRIVSEP), \
        --with-privsep-user=lldp \