build.sh: set LDFLAGS=-lrt for glibc < 2.17 in lwip build

The link step for the native lwip build fails on platforms that
use a glibc version prior 2.17. The reason is that librt is needed
for clock_gettime() in that environment. configure detects this
correctly but the lwip example comes with a simple hand-craftet
Makefile that does not use the configure results.

This quick hack checks for the output of the check for clock_gettime()
and includes the required libraries in order to fix the travis build.
This commit is contained in:
Olaf Bergmann committed 2016-06-22 14:26:46 +02:00
1 parent ebbdc30a52
commit 4f24417d59
1 file changed
+1 -1
+1 -1
View File
@@ -15,7 +15,7 @@ case "${PLATFORM}" in
;;
lwip) config "--disable-tests --disable-documentation --disable-examples" && \
make -C examples/lwip lwip lwip-contrib
make -C examples/lwip
make -C examples/lwip LDFLAGS=`grep ac_cv_search_clock_gettime=- config.log|cut -d= -f2`
;;
posix|*) config "$WITH_TESTS --enable-documentation --enable-examples" && \
make