summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc
diff options
context:
space:
mode:
authorguenther <>2015-10-25 18:01:24 +0000
committerguenther <>2015-10-25 18:01:24 +0000
commitf99a409614d6c4522947819dc74a336ee3815b6c (patch)
treed693093c1d02f4d871efc5d2a1f844d4efa6f765 /src/regress/lib/libc
parent42fee343ee2dc57b8df51e274a7981adeaa05c85 (diff)
downloadopenbsd-f99a409614d6c4522947819dc74a336ee3815b6c.tar.gz
openbsd-f99a409614d6c4522947819dc74a336ee3815b6c.tar.bz2
openbsd-f99a409614d6c4522947819dc74a336ee3815b6c.zip
Hide __atexit and __atexit_register_cleanup()
Wrap __cxa_{atexit,finalize}() so the call from exit() goes direct Switch regress/lib/libc/atexit/ to be built with -static so that it can still access __atexit* ok millert@ jca@
Diffstat (limited to 'src/regress/lib/libc')
-rw-r--r--src/regress/lib/libc/atexit/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/regress/lib/libc/atexit/Makefile b/src/regress/lib/libc/atexit/Makefile
index c14b3c7ac4..057844d767 100644
--- a/src/regress/lib/libc/atexit/Makefile
+++ b/src/regress/lib/libc/atexit/Makefile
@@ -1,9 +1,10 @@
1# $OpenBSD: Makefile,v 1.5 2003/07/31 22:46:59 david Exp $ 1# $OpenBSD: Makefile,v 1.6 2015/10/25 18:01:24 guenther Exp $
2 2
3NOMAN= 3NOMAN=
4PROG=atexit_test 4PROG=atexit_test
5CPPFLAGS+=-I${.CURDIR}/../../../../lib/libc 5CPPFLAGS+=-I${.CURDIR}/../../../../lib/libc -D'PROTO_NORMAL(x)=__asm("")'
6CLEANFILES+= invalid.out valid.out 6CLEANFILES+= invalid.out valid.out
7LDADD=-static
7 8
8run-regress-atexit_test: ${PROG} 9run-regress-atexit_test: ${PROG}
9 ./${PROG} -valid 2>${.OBJDIR}/valid.out 10 ./${PROG} -valid 2>${.OBJDIR}/valid.out