radvd: fix build against older glibc
authorBaruch Siach <baruch@tkos.co.il>
Fri, 27 Jun 2014 07:30:30 +0000 (10:30 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 27 Jun 2014 11:09:22 +0000 (13:09 +0200)
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 <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/radvd/radvd.mk

index 5958d9145b0fe83709677271ff6f78c6cfa5d122..a42d8583f7d78238c38edd4c969629bb9f7dc09b 100644 (file)
@@ -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