package/libmodsecurity: fix static build
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 26 Jul 2021 06:37:49 +0000 (08:37 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 28 Jul 2021 19:41:45 +0000 (21:41 +0200)
commit489cbfd7df1650a8790b3bdbcd69a2357f19764b
treeb75583a38019ab0d7544c01f8cea2f2cb02d6dd3
parent2f99483a59edc4e0ad9482551b3af2d8f4be1793
package/libmodsecurity: fix static build

Fix the following static build failure with nginx raised since bump of
libmodsecurity to version 3.0.5 in commit
464d0be380c84ac7c3f1684e49153c3868280d7e:

/home/buildroot/autobuild/instance-2/output-1/host/lib/gcc/xtensa-buildroot-linux-uclibc/10.3.0/../../../../xtensa-buildroot-linux-uclibc/bin/ld: /home/buildroot/autobuild/instance-2/output-1/host/bin/../xtensa-buildroot-linux-uclibc/sysroot/usr/lib/libmodsecurity.a(libmodsecurity_la-transaction.o): in function `std::basic_streambuf<char, std::char_traits<char> >::sbumpc() [clone .isra.0]':
transaction.cc:(.text+0x40): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_dispose()'

Fixes:
 - http://autobuild.buildroot.org/results/e5a9eb8448980f1c5cafe97180b7d1f48ddf02ca

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libmodsecurity/0002-modsecurity.pc.in-add-lstdc.patch [new file with mode: 0644]