aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2014-07-21 07:50:32 -0500
committerBrent Cook <bcook@openbsd.org>2014-07-21 19:54:07 -0500
commitf425f564d5062fdc3f7a0d15c7cc5c36a1723abd (patch)
treed8ebf841fcb5e43ce57956aaaef7d68f6b024808 /crypto
parent0ec7cdcbadd66def45046d093919799d9af3c12e (diff)
downloadportable-f425f564d5062fdc3f7a0d15c7cc5c36a1723abd.tar.gz
portable-f425f564d5062fdc3f7a0d15c7cc5c36a1723abd.tar.bz2
portable-f425f564d5062fdc3f7a0d15c7cc5c36a1723abd.zip
test for and use system explicit_bzero if it exists
ok beck@ guenther@
Diffstat (limited to 'crypto')
-rw-r--r--crypto/Makefile.am.tpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/Makefile.am.tpl b/crypto/Makefile.am.tpl
index ac87a77..6e1c423 100644
--- a/crypto/Makefile.am.tpl
+++ b/crypto/Makefile.am.tpl
@@ -14,7 +14,11 @@ noinst_LTLIBRARIES = libcompat.la libcompatnoopt.la
14 14
15# compatibility functions that need to be built without optimizations 15# compatibility functions that need to be built without optimizations
16libcompatnoopt_la_CFLAGS = -O0 16libcompatnoopt_la_CFLAGS = -O0
17libcompatnoopt_la_SOURCES = compat/explicit_bzero.c 17libcompatnoopt_la_SOURCES =
18
19if NO_EXPLICIT_BZERO
20libcompatnoopt_la_SOURCES += compat/explicit_bzero.c
21endif
18 22
19# other compatibility functions 23# other compatibility functions
20libcompat_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS) 24libcompat_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS)