On 06/29/16 06:31, Ruslan Babayev wrote:
PTHREAD_LDFLAGS are already added to AM_LDFLAGS.

Signed-off-by: Ruslan Babayev <[email protected]>
---
  platform/linux-generic/m4/odp_pthread.m4 | 2 --
  1 file changed, 2 deletions(-)

diff --git a/platform/linux-generic/m4/odp_pthread.m4 
b/platform/linux-generic/m4/odp_pthread.m4
index 7f39103..22411c9 100644
--- a/platform/linux-generic/m4/odp_pthread.m4
+++ b/platform/linux-generic/m4/odp_pthread.m4
@@ -9,5 +9,3 @@ AX_PTHREAD([CC="$PTHREAD_CC"], [
  LIBS="$PTHREAD_LIBS $LIBS"
  AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
  AM_LDFLAGS="$AM_LDFLAGS $PTHREAD_LDFLAGS"
-
-AM_LDFLAGS="$AM_LDFLAGS -pthread -lrt"
That change looks good. According to configure.log configure script plays with different pthread flags and finally finds which flags have to be used. Also code compiles and runs for me fine.

Maxim.
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to