diff options
author | Sergei Golubchik <serg@mariadb.org> | 2020-01-13 13:08:55 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2020-01-16 18:13:55 +0100 |
commit | ff5a528f260ea81e5ef06f4fd36c3d179e91fbd9 (patch) | |
tree | c1029aedf108e7300703b4321db6f4268adc9333 /libmysqld/examples | |
parent | 1b1bf430b85d74c3a3f0c7b26e7d90226e17d89a (diff) | |
download | mariadb-git-ff5a528f260ea81e5ef06f4fd36c3d179e91fbd9.tar.gz |
mysqltest crashes on Debian
Debian is apparently offended that pcre2-posix implements POSIX API,
thus it renames all posix-compatible symbols in libpcre2-posix to have the
PCRE2 prefix. But Debian doesn't do anything to pcre2posix.h header,
so any unaware application will get POSIX compatible type names
and function prototypes from pcre2, but actual symbols will come
from libc.
To remedy this enormous incongruity we have to redefine POSIX-compatible
function names in pcre2posix to match Debian's hack.
Diffstat (limited to 'libmysqld/examples')
-rw-r--r-- | libmysqld/examples/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmysqld/examples/CMakeLists.txt b/libmysqld/examples/CMakeLists.txt index 6b3bed6e50e..5bd861c2f63 100644 --- a/libmysqld/examples/CMakeLists.txt +++ b/libmysqld/examples/CMakeLists.txt @@ -35,6 +35,7 @@ ENDIF(UNIX) MYSQL_ADD_EXECUTABLE(mysqltest_embedded ../../client/mysqltest.cc COMPONENT Test) TARGET_LINK_LIBRARIES(mysqltest_embedded mysqlserver pcre2-posix pcre2-8) +SET_SOURCE_FILES_PROPERTIES(../../client/mysqltest.cc PROPERTIES COMPILE_FLAGS "${PCRE2_DEBIAN_HACK}") IF(CMAKE_GENERATOR MATCHES "Xcode") # It does not seem possible to tell Xcode the resulting target might need |