aboutsummaryrefslogtreecommitdiffstats
path: root/main/mariadb/pcre.cmake.patch
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.dk>2018-02-16 12:46:38 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2018-03-26 08:54:40 +0000
commit6556a505d52c020d0bf835a0f1e12afceb303674 (patch)
tree040eef8b314b41d96b69d6551b8209d3ccd3118f /main/mariadb/pcre.cmake.patch
parent86472cf416d488df0ea4c9044accd77ff2c583c8 (diff)
downloadaports-6556a505d52c020d0bf835a0f1e12afceb303674.tar.gz
aports-6556a505d52c020d0bf835a0f1e12afceb303674.tar.bz2
aports-6556a505d52c020d0bf835a0f1e12afceb303674.tar.xz
main/mariadb: upgrade to 10.2.13, modernize
Diffstat (limited to 'main/mariadb/pcre.cmake.patch')
-rw-r--r--main/mariadb/pcre.cmake.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/main/mariadb/pcre.cmake.patch b/main/mariadb/pcre.cmake.patch
new file mode 100644
index 0000000000..cf0c352b83
--- /dev/null
+++ b/main/mariadb/pcre.cmake.patch
@@ -0,0 +1,15 @@
+--- a/cmake/pcre.cmake
++++ b/cmake/pcre.cmake
+@@ -8,11 +8,7 @@
+ CHECK_LIBRARY_EXISTS(pcre pcre_stack_guard "" HAVE_PCRE_STACK_GUARD)
+ IF(NOT CMAKE_CROSSCOMPILING)
+ SET(CMAKE_REQUIRED_LIBRARIES "pcre")
+- CHECK_C_SOURCE_RUNS("
+- #include <pcre.h>
+- int main() {
+- return -pcre_exec(NULL, NULL, NULL, -999, -999, 0, NULL, 0) < 256;
+- }" PCRE_STACK_SIZE_OK)
++ SET(PCRE_STACK_SIZE_OK TRUE)
+ SET(CMAKE_REQUIRED_LIBRARIES)
+ ENDIF()
+ ENDIF()