summaryrefslogtreecommitdiff
path: root/storage/mroonga/vendor
diff options
context:
space:
mode:
authorKentoku SHIBA <kentokushiba@gmail.com>2015-05-05 02:43:19 +0900
committerKentoku SHIBA <kentokushiba@gmail.com>2015-05-05 02:43:19 +0900
commitd18beccc1d7f44d21987ee8da48c3b33a62b26e1 (patch)
tree781cc5716120bb7b8459cf9ba95ed4822a085fc3 /storage/mroonga/vendor
parenta0fdb258a435290980993ae025a7fc19c09d2cdb (diff)
downloadmariadb-git-d18beccc1d7f44d21987ee8da48c3b33a62b26e1.tar.gz
add -fPIC for groonga-normalizer-mysql
Diffstat (limited to 'storage/mroonga/vendor')
-rw-r--r--storage/mroonga/vendor/groonga/vendor/plugins/groonga-normalizer-mysql/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/storage/mroonga/vendor/groonga/vendor/plugins/groonga-normalizer-mysql/CMakeLists.txt b/storage/mroonga/vendor/groonga/vendor/plugins/groonga-normalizer-mysql/CMakeLists.txt
index 3577572a9f1..a8c26f04ad1 100644
--- a/storage/mroonga/vendor/groonga/vendor/plugins/groonga-normalizer-mysql/CMakeLists.txt
+++ b/storage/mroonga/vendor/groonga/vendor/plugins/groonga-normalizer-mysql/CMakeLists.txt
@@ -54,6 +54,13 @@ else()
_pkgconfig_invoke(groonga GROONGA PLUGINS_DIR "" --variable=pluginsdir)
endif()
+if(NOT DEFINED CMAKE_C_COMPILE_OPTIONS_PIC)
+ # For old CMake
+ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGCXX)
+ check_build_flag("-fPIC")
+ endif()
+endif()
+
include_directories(
${CMAKE_BINARY_DIR}
${GROONGA_INCLUDE_DIRS})