do not link libcompatnoopt if it is unneeded/built
from andy-js on github, fix #158
This commit is contained in:
parent
9c5105eeb1
commit
9574b6c8ec
@ -13,7 +13,10 @@ EXTRA_DIST += CMakeLists.txt
|
|||||||
EXTRA_DIST += compat/strcasecmp.c
|
EXTRA_DIST += compat/strcasecmp.c
|
||||||
|
|
||||||
libcrypto_la_LDFLAGS = -version-info @LIBCRYPTO_VERSION@ -no-undefined
|
libcrypto_la_LDFLAGS = -version-info @LIBCRYPTO_VERSION@ -no-undefined
|
||||||
libcrypto_la_LIBADD = libcompat.la libcompatnoopt.la
|
libcrypto_la_LIBADD = libcompat.la
|
||||||
|
if !HAVE_EXPLICIT_BZERO
|
||||||
|
libcrypto_la_LIBADD += libcompatnoopt.la
|
||||||
|
endif
|
||||||
libcrypto_la_CPPFLAGS = $(AM_CPPFLAGS)
|
libcrypto_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||||
libcrypto_la_CPPFLAGS += -DLIBRESSL_INTERNAL
|
libcrypto_la_CPPFLAGS += -DLIBRESSL_INTERNAL
|
||||||
libcrypto_la_CPPFLAGS += -DOPENSSL_NO_HW_PADLOCK
|
libcrypto_la_CPPFLAGS += -DOPENSSL_NO_HW_PADLOCK
|
||||||
@ -31,13 +34,15 @@ else
|
|||||||
libcrypto_la_CPPFLAGS += -DOPENSSLDIR=\"$(sysconfdir)/ssl\"
|
libcrypto_la_CPPFLAGS += -DOPENSSLDIR=\"$(sysconfdir)/ssl\"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
noinst_LTLIBRARIES = libcompat.la libcompatnoopt.la
|
noinst_LTLIBRARIES = libcompat.la
|
||||||
|
|
||||||
# compatibility functions that need to be built without optimizations
|
# compatibility functions that need to be built without optimizations
|
||||||
|
if !HAVE_EXPLICIT_BZERO
|
||||||
|
noinst_LTLIBRARIES += libcompatnoopt.la
|
||||||
|
|
||||||
libcompatnoopt_la_CFLAGS = -O0
|
libcompatnoopt_la_CFLAGS = -O0
|
||||||
libcompatnoopt_la_SOURCES =
|
libcompatnoopt_la_SOURCES =
|
||||||
|
|
||||||
if !HAVE_EXPLICIT_BZERO
|
|
||||||
if HOST_WIN
|
if HOST_WIN
|
||||||
libcompatnoopt_la_SOURCES += compat/explicit_bzero_win.c
|
libcompatnoopt_la_SOURCES += compat/explicit_bzero_win.c
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user