diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-08-25 13:50:38 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-08-25 15:01:01 +0200 |
commit | 6d52d0ad4a081351b41371668330f880262ca5ac (patch) | |
tree | d37ef65cbe30674fc184f131a8588402fcfd8134 /app-arch/snappy/files | |
parent | dev-ml/ppx_deriving: fix installation path of ppx_deriving exe like in older ... (diff) | |
download | gentoo-6d52d0ad4a081351b41371668330f880262ca5ac.tar.gz gentoo-6d52d0ad4a081351b41371668330f880262ca5ac.tar.bz2 gentoo-6d52d0ad4a081351b41371668330f880262ca5ac.zip |
app-arch/snappy: Bump to 1.1.7
Diffstat (limited to 'app-arch/snappy/files')
-rw-r--r-- | app-arch/snappy/files/snappy-1.1.7-0001-cmake-Add-missing-linking-to-GTEST_LIBRARIES.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/app-arch/snappy/files/snappy-1.1.7-0001-cmake-Add-missing-linking-to-GTEST_LIBRARIES.patch b/app-arch/snappy/files/snappy-1.1.7-0001-cmake-Add-missing-linking-to-GTEST_LIBRARIES.patch new file mode 100644 index 000000000000..3327b8bcf0ac --- /dev/null +++ b/app-arch/snappy/files/snappy-1.1.7-0001-cmake-Add-missing-linking-to-GTEST_LIBRARIES.patch @@ -0,0 +1,31 @@ +From 1c9f699a6275f085ad710c9ae940e096ce552452 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Mon, 31 Jul 2017 20:49:22 +0200 +Subject: [PATCH] cmake: Add missing linking to GTEST_LIBRARIES + +Since the snappy_unittest target uses gtest routines (when available), +it needs to link to gtest explicitly. Otherwise, the build fails due +to unavailable gtest symbols. +--- + CMakeLists.txt | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3f534b1..3a44aa9 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -118,7 +118,10 @@ if(SNAPPY_BUILD_TESTS) + "${PROJECT_SOURCE_DIR}/snappy-test.cc" + ) + target_compile_definitions(snappy_unittest PRIVATE -DHAVE_CONFIG_H) +- target_link_libraries(snappy_unittest snappy ${GFLAGS_LIBRARIES}) ++ target_link_libraries(snappy_unittest ++ snappy ++ ${GFLAGS_LIBRARIES} ++ ${GTEST_LIBRARIES}) + + if(HAVE_LIBZ) + target_link_libraries(snappy_unittest z) +-- +2.14.1 + |