aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-09-24 08:36:10 +0200
committerJo-Philipp Wich <jo@mein.io>2018-12-18 11:28:13 +0100
commita3446cb0d227a842bf748b8ca04bb4631bf1ea27 (patch)
treed18bca8db9902e2520a2efd6e8ce9b561886864d /package/network
parent63b867adedf4863ea0354f49a47f6b33d0f6c720 (diff)
downloadupstream-a3446cb0d227a842bf748b8ca04bb4631bf1ea27.tar.gz
upstream-a3446cb0d227a842bf748b8ca04bb4631bf1ea27.tar.bz2
upstream-a3446cb0d227a842bf748b8ca04bb4631bf1ea27.zip
lldpd: inhibit linking of libbsd on !GLIBC
Signed-off-by: Jo-Philipp Wich <jo@mein.io> (backported from 4f277eb6402684ca79c9834e8eb30c0e93368e8b)
Diffstat (limited to 'package/network')
-rw-r--r--package/network/services/lldpd/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/network/services/lldpd/Makefile b/package/network/services/lldpd/Makefile
index 22b55c6df1..78dc54be93 100644
--- a/package/network/services/lldpd/Makefile
+++ b/package/network/services/lldpd/Makefile
@@ -87,6 +87,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 \