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 <peter@korsgaard.com>
This commit is contained in:
Peter Korsgaard 2015-03-10 20:00:19 +01:00
parent 53ac9230bc
commit 7663664113

View File

@ -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