From: Baruch Siach Date: Fri, 27 Jun 2014 07:30:30 +0000 (+0300) Subject: radvd: fix build against older glibc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e92fb1f90f1b51cd111105d86c058fdca6f3434a;p=buildroot.git radvd: fix build against older glibc clock_gettime() requires -lrt when linking against glibc older than 2.17. Fixes: http://autobuild.buildroot.net/results/e07/e07dd9a82ae4c8778b6901b9bd777f5affb9293a/ [Peter: add comment in .mk as well] Signed-off-by: Baruch Siach Signed-off-by: Peter Korsgaard --- diff --git a/package/radvd/radvd.mk b/package/radvd/radvd.mk index 5958d9145b..a42d8583f7 100644 --- a/package/radvd/radvd.mk +++ b/package/radvd/radvd.mk @@ -8,6 +8,8 @@ RADVD_VERSION = 1.13 RADVD_SOURCE = radvd-$(RADVD_VERSION).tar.xz RADVD_SITE = http://www.litech.org/radvd/dist RADVD_DEPENDENCIES = host-bison flex libdaemon host-flex host-pkgconf +# clock_gettime() requires -lrt when linking against glibc older than 2.17 +RADVD_CONF_ENV = LIBS=-lrt define RADVD_INSTALL_INITSCRIPT $(INSTALL) -m 0755 package/radvd/S50radvd $(TARGET_DIR)/etc/init.d