diff options
author | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-01-25 07:49:36 +0100 |
---|---|---|
committer | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-01-25 07:49:36 +0100 |
commit | 37b6a097b2a773d95bc19bb106b19e8a50fd6c30 (patch) | |
tree | 135aea6bf8f291986954c372ed529de0049b328d | |
parent | 492e7580aa482b754713f258b82474f22b2e63a1 (diff) | |
download | librb-37b6a097b2a773d95bc19bb106b19e8a50fd6c30.tar.gz librb-37b6a097b2a773d95bc19bb106b19e8a50fd6c30.tar.bz2 librb-37b6a097b2a773d95bc19bb106b19e8a50fd6c30.zip |
fix: pthread error when linking with librb
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | rb/Makefile.am | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index ac7bfb9..60b216c 100644 --- a/configure.ac +++ b/configure.ac @@ -19,6 +19,10 @@ AC_ARG_ENABLE([threads], AS_IF([test "x$enable_threads" = "xyes"], [ AX_PTHREAD + LIBS="$PTHREAD_LIBS $LIBS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + CC="$PTHREAD_CC" + AC_DEFINE([ENABLE_THREADS], [1], [Enable thread awarness]) ], # else diff --git a/rb/Makefile.am b/rb/Makefile.am index 81d42e7..092a684 100644 --- a/rb/Makefile.am +++ b/rb/Makefile.am @@ -6,7 +6,6 @@ librb_la_CFLAGS = -I$(top_srcdir)/include check_PROGRAMS = tests tests_SOURCES = rb.c tests.c mtest.h tests_CFLAGS = -I$(top_srcdir)/include -tests_LDFLAGS = $(PTHREAD_CFLAGS) TESTS = $(check_PROGRAMS) LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \ |