mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-23 23:51:03 +03:00
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:
1 parent
ebbdc30a52
commit
4f24417d59
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user