mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Only link SSL libraries when selected by config
This commit fixes '-lssl' and '-lmbedtls' being linked even when they haven't been selected by --enable-libmbedtls or --enable-libopenssl Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
This commit is contained in:
parent
ff759d2cca
commit
17e255c450
1 changed files with 8 additions and 4 deletions
12
configure.ac
12
configure.ac
|
|
@ -85,11 +85,15 @@ AC_SUBST([LBLOBMSG_LIBS])
|
|||
LIBDLOPEN_LIBS='-ldl'
|
||||
AC_SUBST([LIBDLOPEN_LIBS])
|
||||
|
||||
LIBOPENSSL_LIBS='-lssl'
|
||||
AC_SUBST([LIBOPENSSL_LIBS])
|
||||
AM_COND_IF([LOPENSSL], [
|
||||
LIBOPENSSL_LIBS='-lssl'
|
||||
AC_SUBST([LIBOPENSSL_LIBS])
|
||||
])
|
||||
|
||||
LIBMBETLS_LIBS='-lmbedtls'
|
||||
AC_SUBST([LIBMBETLS_LIBS])
|
||||
AM_COND_IF([LMBEDTLS], [
|
||||
LIBMBETLS_LIBS='-lmbedtls'
|
||||
AC_SUBST([LIBMBETLS_LIBS])
|
||||
])
|
||||
|
||||
# checks for header files
|
||||
AC_CHECK_HEADERS([stdlib.h string.h])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue