mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 00:04:06 -09:00
package/libmodsecurity: needs dynamic library with libcurl and mbedtls
libmodsecurity embeds several mbedtls source files since version 3.0.0 anda3ae686f25resulting in the following static build failure if curl is built with mbedtls support: /home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/m68k-buildroot-uclinux-uclibc/bin/ld.real: /home/buildroot/autobuild/instance-0/output-1/host/bin/../m68k-buildroot-uclinux-uclibc/sysroot/usr/lib/libmbedcrypto.a(md5.c.o): in function `mbedtls_md5_free': md5.c:(.text+0x16): multiple definition of `mbedtls_md5_free'; ../../src/.libs/libmodsecurity.a(libmbedtls_la-md5.o):md5.c:(.text+0x16): first defined here Fixes: - http://autobuild.buildroot.org/results/98472a3a41cdbcb3d02289a437074a267f4b2e8e Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> (cherry picked from commit9fc652a373) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
a087851b4e
commit
2d021a7e71
@@ -2,6 +2,8 @@ config BR2_PACKAGE_LIBMODSECURITY
|
||||
bool "libmodsecurity"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
# libmodsecurity embeds several mbedtls source files
|
||||
depends on !(BR2_STATIC_LIBS && BR2_PACKAGE_LIBCURL_MBEDTLS)
|
||||
select BR2_PACKAGE_PCRE
|
||||
help
|
||||
Libmodsecurity is one component of the ModSecurity
|
||||
@@ -17,3 +19,6 @@ config BR2_PACKAGE_LIBMODSECURITY
|
||||
|
||||
comment "libmodsecurity needs a toolchain w/ C++, threads"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
comment "libmodsecurity needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS && BR2_PACKAGE_LIBCURL_MBEDTLS
|
||||
|
||||
@@ -3,6 +3,7 @@ config BR2_PACKAGE_NGINX_MODSECURITY
|
||||
depends on BR2_PACKAGE_NGINX_HTTP
|
||||
depends on BR2_INSTALL_LIBSTDCPP # libmodsecurity
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libmodsecurity
|
||||
depends on !(BR2_STATIC_LIBS && BR2_PACKAGE_LIBCURL_MBEDTLS) # libmodsecurity
|
||||
select BR2_PACKAGE_LIBMODSECURITY
|
||||
help
|
||||
The ModSecurity-nginx connector is the connection
|
||||
@@ -14,3 +15,7 @@ config BR2_PACKAGE_NGINX_MODSECURITY
|
||||
comment "nginx-modsecurity needs a toolchain w/ C++, threads"
|
||||
depends on BR2_PACKAGE_NGINX_HTTP
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
comment "nginx-modsecurity needs a toolchain w/ dynamic library"
|
||||
depends on BR2_PACKAGE_NGINX_HTTP
|
||||
depends on BR2_STATIC_LIBS && BR2_PACKAGE_LIBCURL_MBEDTLS
|
||||
|
||||
Reference in New Issue
Block a user