test for and use system explicit_bzero if it exists

ok beck@ guenther@
This commit is contained in:
Brent Cook
2014-07-21 07:50:32 -05:00
parent 0ec7cdcbad
commit f425f564d5
2 changed files with 10 additions and 1 deletions

View File

@@ -14,7 +14,11 @@ noinst_LTLIBRARIES = libcompat.la libcompatnoopt.la
# compatibility functions that need to be built without optimizations
libcompatnoopt_la_CFLAGS = -O0
libcompatnoopt_la_SOURCES = compat/explicit_bzero.c
libcompatnoopt_la_SOURCES =
if NO_EXPLICIT_BZERO
libcompatnoopt_la_SOURCES += compat/explicit_bzero.c
endif
# other compatibility functions
libcompat_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS)