commit f34aa4b9014f1a6e59df9fb23d7d08976159710e
parent 0bb70986503f7c000a24c558a9ad6a67e404c623
Author: kyle <kyle@getaddrinfo.net>
Date: Wed, 16 Mar 2016 19:30:37 -0600
lib: link runtime with -pthread directly
- stop linking the target program with -pthread too
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/Makefile b/lib/Makefile
@@ -2,6 +2,7 @@ LIB = scv
SRCS = runtime.c
CFLAGS += -std=c89 -pthread -I../
+LDADD += -pthread
NOPROFILE = 1
.include <bsd.lib.mk>
diff --git a/wrap/scv_wrap b/wrap/scv_wrap
@@ -13,7 +13,7 @@ export PATH="$SCV_PATH:$PATH"
export CFLAGS="-I$scv_root"
export LDFLAGS="-L$scv_root/lib"
-export LDADD="-lscv -pthread"
+export LDADD="-lscv"
# Used for running programs
export LD_LIBRARY_PATH="$scv_root/lib"