diff options
Diffstat (limited to 'app-arch/snappy/files/snappy-1.1.5-0003-cmake-Add-missing-linking-to-GTEST_LIBRARIES.patch')
-rw-r--r-- | app-arch/snappy/files/snappy-1.1.5-0003-cmake-Add-missing-linking-to-GTEST_LIBRARIES.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app-arch/snappy/files/snappy-1.1.5-0003-cmake-Add-missing-linking-to-GTEST_LIBRARIES.patch b/app-arch/snappy/files/snappy-1.1.5-0003-cmake-Add-missing-linking-to-GTEST_LIBRARIES.patch new file mode 100644 index 000000000000..3d7d8fcb59d3 --- /dev/null +++ b/app-arch/snappy/files/snappy-1.1.5-0003-cmake-Add-missing-linking-to-GTEST_LIBRARIES.patch @@ -0,0 +1,28 @@ +From 57b13b68466e2ac81d8faa2c92f55e629a3184f8 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Thu, 29 Jun 2017 10:01:37 +0200 +Subject: [PATCH 3/3] 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 | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b88cb20..bbe4d38 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -143,7 +143,7 @@ ENDIF (HAVE_LIBQUICKLZ) + ADD_EXECUTABLE(snappy-unittest snappy_unittest.cc snappy-test.cc) + TARGET_COMPILE_DEFINITIONS(snappy-unittest PRIVATE -DHAVE_CONFIG_H) + TARGET_LINK_LIBRARIES(snappy-unittest snappy ${COMPRESSION_LIBS} +- ${GFLAGS_LIBRARIES}) ++ ${GFLAGS_LIBRARIES} ${GTEST_LIBRARIES}) + TARGET_INCLUDE_DIRECTORIES(snappy-unittest BEFORE PRIVATE ${Snappy_SOURCE_DIR} + ${GTEST_INCLUDE_DIRS} ${GFLAGS_INCLUDE_DIRS}) + +-- +2.13.2 + |