[babl] tests: not all UNIX-like OSes have a libpthread.



commit 5cb3fdeb843ed073fd9e6d00a0ddd2fb6dd0c678
Author: Jehan <jehan girinstud io>
Date:   Mon Dec 4 03:33:47 2017 +0100

    tests: not all UNIX-like OSes have a libpthread.
    
    In particular Android systems don't need to link with -lpthread
    (actually the link would fail with "ld: cannot find -lpthread").
    Use the $(THREAD_LIB) variable which is set correctly during configure
    since commit c02af82.

 tests/Makefile.am |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 59bb296..98f4ae2 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -34,13 +34,7 @@ TESTS = \
 TESTS_ENVIRONMENT = LD_LIBRARY_PATH=$(top_builddir)/babl:$LD_LIBRARY_PATH 
GI_TYPELIB_PATH=$(top_builddir)/babl BABL_PATH=$(top_builddir)/extensions/.libs
 
 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/babl
-if OS_UNIX
-AM_LDFLAGS  = -lpthread -no-install
-else
-
-AM_LDFLAGS  = -no-install
-endif
-
+AM_LDFLAGS  = $(THREAD_LIB) -no-install
 
 LDADD = $(top_builddir)/babl/libbabl-@BABL_API_VERSION@.la \
        $(MATH_LIB) $(THREAD_LIB)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]