summaryrefslogtreecommitdiffstats
path: root/lib/libthr/tests
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2015-12-04 03:17:47 +0000
committerbdrewery <bdrewery@FreeBSD.org>2015-12-04 03:17:47 +0000
commitbb97a3d43c2b7f2a5b4f05069e3bb12383a9e20d (patch)
treec7b391aae2de6c3508dafaaad65c558a94b98ab7 /lib/libthr/tests
parentb4e7db0cc3b11e52de66259e19d2bf84d0bfb9c2 (diff)
downloadFreeBSD-src-bb97a3d43c2b7f2a5b4f05069e3bb12383a9e20d.zip
FreeBSD-src-bb97a3d43c2b7f2a5b4f05069e3bb12383a9e20d.tar.gz
Fix LDADD/DPADD that should be LIBADD.
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'lib/libthr/tests')
-rw-r--r--lib/libthr/tests/Makefile9
-rw-r--r--lib/libthr/tests/dlopen/Makefile3
-rw-r--r--lib/libthr/tests/dlopen/dso/Makefile3
3 files changed, 5 insertions, 10 deletions
diff --git a/lib/libthr/tests/Makefile b/lib/libthr/tests/Makefile
index a5fc85e..aeb1ef8 100644
--- a/lib/libthr/tests/Makefile
+++ b/lib/libthr/tests/Makefile
@@ -30,12 +30,9 @@ NETBSD_ATF_TESTS_SH+= cancel_test
NETBSD_ATF_TESTS_SH+= exit_test
NETBSD_ATF_TESTS_SH+= resolv_test
-DPADD+= ${LIBPTHREAD}
-LDADD+= -lpthread
-DPADD.fpu_test+= ${LIBM}
-LDADD.fpu_test+= -lm
-DPADD.sem_test+= ${LIBRT}
-LDADD.sem_test+= -lrt
+LIBADD+= pthread
+LIBADD.fpu_test+= m
+LIBADD.sem_test+= rt
BINDIR= ${TESTSDIR}
diff --git a/lib/libthr/tests/dlopen/Makefile b/lib/libthr/tests/dlopen/Makefile
index 0893192..bea70ec 100644
--- a/lib/libthr/tests/dlopen/Makefile
+++ b/lib/libthr/tests/dlopen/Makefile
@@ -18,8 +18,7 @@ NETBSD_ATF_TESTS_C+= main_pthread_create_test
#NETBSD_ATF_TESTS_C+= dso_pthread_create_test
.for t in dlopen_test main_pthread_create_test
-DPADD.$t+= ${LIBPTHREAD}
-LDADD.$t+= -lpthread
+LIBADD.${t}+= pthread
.endfor
.endif
diff --git a/lib/libthr/tests/dlopen/dso/Makefile b/lib/libthr/tests/dlopen/dso/Makefile
index 53356876..23d4cd6 100644
--- a/lib/libthr/tests/dlopen/dso/Makefile
+++ b/lib/libthr/tests/dlopen/dso/Makefile
@@ -8,8 +8,7 @@ SHLIB_MAJOR= 1
SHLIB_NAME= h_pthread_dlopen.so.${SHLIB_MAJOR}
SRCS= h_pthread_dlopen.c
-DPADD+= ${LIBPTHREAD}
-LDADD+= -lpthread
+LIBADD+= pthread
LIBDIR= ${TESTSBASE}/lib/libthr/dlopen
OpenPOWER on IntegriCloud