On Android, pthread is already part of libc called Bionic and doesn't
have an external library to link with.
Signed-off-by: Charles Briere <charlesbriere.flatzo@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
#Add the -version-info directly here since we are only building
# library that use the version-info
-AM_LDFLAGS=-lpthread -version-info $(URCU_LIBRARY_VERSION)
+AM_LDFLAGS=-version-info $(URCU_LIBRARY_VERSION)
+if !TARGET_IS_ANDROID
+AM_LDFLAGS+=-lpthread
+endif
AM_CFLAGS=-Wall
SUBDIRS = . doc tests
+if !TARGET_IS_ANDROID
AM_LDFLAGS=-lpthread
+endif
AM_CFLAGS=-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/tests/common -g
noinst_PROGRAMS = test_urcu test_urcu_dynamic_link test_urcu_timing \
+if !TARGET_IS_ANDROID
AM_LDFLAGS=-lpthread
+endif
AM_CFLAGS=-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/tests/common -g
noinst_PROGRAMS = test_urcu_fork \
+if !TARGET_IS_ANDROID
AM_LDFLAGS=-lpthread
+endif
AM_CFLAGS=-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/tests/common -g
noinst_PROGRAMS = test_uatomic \