X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=package%2Fnetwork%2Fservices%2Flldpd%2FMakefile;h=801a772e023f9753d930300d7d73a320cfab53a9;hp=3605ed25f9232e3166205453c876eabfbacc3dd1;hb=c5b89abe2a0a325dbbb8a82ef6682c63199125c6;hpb=4f277eb6402684ca79c9834e8eb30c0e93368e8b diff --git a/package/network/services/lldpd/Makefile b/package/network/services/lldpd/Makefile index 3605ed25f9..801a772e02 100644 --- a/package/network/services/lldpd/Makefile +++ b/package/network/services/lldpd/Makefile @@ -85,10 +85,6 @@ 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 \ @@ -111,5 +107,10 @@ CONFIGURE_ARGS += \ $(if $(CONFIG_LLDPD_WITH_JSON),--with-json=json-c,--with-json=no) \ $(if $(CONFIG_LLDPD_WITH_SNMP),--with-snmp,) +# there is no flag to disable libbsd +CONFIGURE_VARS += \ + $(if $(CONFIG_USE_GLIBC),,libbsd_CFLAGS=-ldo-not-link-bsd) \ + $(if $(CONFIG_USE_GLIBC),,libbsd_LDFLAGS=-ldo-not-link-bsd) \ + $(if $(CONFIG_USE_GLIBC),,libbsd_LIBS="-lNONexistent") $(eval $(call BuildPackage,lldpd))