From 766366411386f5bba773042ada58e6379a3d0adf Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Tue, 10 Mar 2015 20:00:19 +0100 Subject: [PATCH] softether: fix clock_gettime() linking issue with older glibcs clock_gettime() is (used to be) provided by librt, so link with it. Fixes: http://autobuild.buildroot.net/results/5c1/5c1a1db7c97b5b1cc345daf316d2debde8f0f0b5/ http://autobuild.buildroot.net/results/6a9/6a983bc4ef24358c89474755dcf843a9f01dc1d4/ http://autobuild.buildroot.net/results/f18/f1853ce0f5aafa7ef4b9e3d8ccda50be7ec2c6a7/ http://autobuild.buildroot.net/results/9f8/9f88ab08d07e423fc2f01e6a1bb5e5ae945f02bd/ And many more. Signed-off-by: Peter Korsgaard --- package/softether/softether.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/softether/softether.mk b/package/softether/softether.mk index 7f2dfb8997..3b1ce40cf3 100644 --- a/package/softether/softether.mk +++ b/package/softether/softether.mk @@ -16,13 +16,19 @@ SOFTETHER_AUTORECONF = YES ifeq ($(BR2_ENABLE_LOCALE),) SOFTETHER_DEPENDENCIES += libiconv -SOFTETHER_CONF_ENV = LIBS="-liconv" +SOFTETHER_CONF_ENV = LIBS+=" -liconv" endif SOFTETHER_CONF_OPTS = \ --with-openssl="$(STAGING_DIR)/usr" \ --with-zlib="$(STAGING_DIR)/usr" +# softether uses clock_gettime but forgets to link against -lrt +# breaking the build against older libc's that don't provide this +# symbol in libc +SOFTETHER_CONF_ENV += LIBS+=" -lrt" +HOST_SOFTETHER_CONF_ENV += LIBS+=" -lrt" + # host-libiconv does not exist, therefore we need this extra line HOST_SOFTETHER_DEPENDENCIES = host-pkgconf host-openssl host-readline