mirror of
https://github.com/opnsense/src.git
synced 2026-04-02 07:55:21 -04:00
500 new testcases Various TODOs have been sprinkled around the Makefiles for items that even need to be ported (missing features), testcases have issues with building/linking, or issues at runtime. A variant of this code has been tested extensively on amd64 and i386 10-STABLE/11-CURRENT for several months without issue. It builds on other architectures, but the code will remain off until I have prove it works on virtual hardware or real hardware on other architectures In collaboration with: pho, Casey Peel <casey.peel@isilon.com> Sponsored by: EMC / Isilon Storage Division
35 lines
936 B
Makefile
35 lines
936 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
TESTSDIR= ${TESTSBASE}/lib/libc/tls
|
|
.if !defined(NO_PIC)
|
|
SUBDIR+= dso
|
|
.endif
|
|
|
|
# TODO: doesn't link properly (for some odd reason it's trying to link in
|
|
# libatf.so)
|
|
#NETBSD_ATF_TESTS_C= tls_static_test
|
|
.if !defined(NO_PIC)
|
|
NETBSD_ATF_TESTS_C+= tls_dlopen_test
|
|
NETBSD_ATF_TESTS_C+= tls_dynamic_test
|
|
.endif
|
|
|
|
.include "../Makefile.netbsd-tests"
|
|
|
|
DSODIR= ${.OBJDIR}/../tls_dso
|
|
|
|
DPADD.tls_static_test+= ${LIBPTHREAD}
|
|
LDADD.tls_static_test+= -lpthread
|
|
LDFLAGS.tls_static_test+= -static
|
|
SRCS.tls_static_test= t_tls_static.c t_tls_static_helper.c
|
|
|
|
DPADD.tls_dynamic_test+= ${LIBPTHREAD} ${DSODIR}/libh_tls_dynamic.so
|
|
LDADD.tls_dynamic_test+= -lpthread -lh_tls_dynamic
|
|
LDFLAGS.tls_dynamic_test+= -Wl,-rpath,${TESTSDIR} -L${DSODIR}
|
|
|
|
DPADD.tls_dlopen_test+= ${LIBPTHREAD}
|
|
LDADD.tls_dlopen_test+= -lpthread
|
|
LDFLAGS.tls_dlopen_test+= -Wl,-rpath,${TESTSDIR} -Wl,-export-dynamic
|
|
|
|
.include <bsd.test.mk>
|