summaryrefslogtreecommitdiff
path: root/pcre
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mnogosearch.org>2013-09-30 11:29:32 +0400
committerAlexander Barkov <bar@mnogosearch.org>2013-09-30 11:29:32 +0400
commit61a1c03694a3f279a7be504923ddcc7f8c744363 (patch)
treea929f4b756127e2f72c77f9a30d147999572afbd /pcre
parentd88c75261243dda42ac78294e7adc9c6bd962885 (diff)
downloadmariadb-git-61a1c03694a3f279a7be504923ddcc7f8c744363.tar.gz
pcre: fixing linking error one some systems:
libmysqld.a(pcre_exec.c.o): relocation R_X86_64_32S against `_pcre_ucd_stage1' can not be used when making a shared object; make[2]: Leaving directory `/mnt/buildbot/build/mariadb-10.0.3' recompile with -fPIC Changing ADD_LIBRARY(pcre) to ADD_CONVENIENCE_LIBRARY(pcre)
Diffstat (limited to 'pcre')
-rw-r--r--pcre/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcre/CMakeLists.txt b/pcre/CMakeLists.txt
index 90f87e1b400..73802bbf1a4 100644
--- a/pcre/CMakeLists.txt
+++ b/pcre/CMakeLists.txt
@@ -314,9 +314,9 @@ SET(targets)
# Libraries
# pcre
-ADD_LIBRARY(pcre ${PCRE_HEADERS} ${PCRE_SOURCES} ${PROJECT_BINARY_DIR}/config.h)
+ADD_CONVENIENCE_LIBRARY(pcre ${PCRE_HEADERS} ${PCRE_SOURCES} ${PROJECT_BINARY_DIR}/config.h)
SET(targets ${targets} pcre)
-ADD_LIBRARY(pcreposix ${PCREPOSIX_HEADERS} ${PCREPOSIX_SOURCES})
+ADD_CONVENIENCE_LIBRARY(pcreposix ${PCREPOSIX_HEADERS} ${PCREPOSIX_SOURCES})
SET(targets ${targets} pcreposix)
TARGET_LINK_LIBRARIES(pcreposix pcre)