@@ -16,6 +16,8 @@ AM_CFLAGS += $(VISIBILITY_CFLAGS)
#The implementation will need to retain the deprecated implementation
AM_CFLAGS += -Wno-deprecated-declarations
+AM_CFLAGS += @PTHREAD_CFLAGS@
+
odpapispecincludedir= $(includedir)/odp/api/spec
odpapispecinclude_HEADERS = \
$(top_srcdir)/include/odp/api/spec/align.h \
@@ -260,6 +260,7 @@ endif
__LIB__libodp_linux_la_LIBADD = $(ATOMIC_LIBS)
__LIB__libodp_linux_la_LIBADD += $(OPENSSL_LIBS)
__LIB__libodp_linux_la_LIBADD += $(DPDK_LIBS) $(DPDK_PMDS)
+__LIB__libodp_linux_la_LIBADD += $(PTHREAD_LIBS)
# Create symlink for ABI header files. Application does not need to use the arch
# specific include path for installed files.
@@ -6,8 +6,3 @@ AX_PTHREAD([CC="$PTHREAD_CC"], [
echo "Error! We require pthreads to be available"
exit -1
])
-LIBS="$PTHREAD_LIBS $LIBS"
-AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
-AM_LDFLAGS="$AM_LDFLAGS $PTHREAD_LDFLAGS"
-
-AM_LDFLAGS="$AM_LDFLAGS -pthread -lrt"