diff options
| author | Natanael Copa <ncopa@alpinelinux.org> | 2018-08-24 08:59:02 +0000 |
|---|---|---|
| committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-08-24 08:59:02 +0000 |
| commit | aeb65ff53e14bceecc703545d6680e75f019664e (patch) | |
| tree | 3ecb05b1cc27132742ffc948a5b3e1573e848c27 /main/graphite2/cmake.patch | |
| parent | 2617aebe4b063767ae360caa649d5f47484b0fad (diff) | |
| download | aports-aeb65ff53e14bceecc703545d6680e75f019664e.tar.bz2 aports-aeb65ff53e14bceecc703545d6680e75f019664e.tar.xz | |
main/graphite2: rebase old cmake patch
The patch is neeed to fix build on x86 and to fix install directory for
cmake files so they are included in -dev subpackage.
Diffstat (limited to 'main/graphite2/cmake.patch')
| -rw-r--r-- | main/graphite2/cmake.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/main/graphite2/cmake.patch b/main/graphite2/cmake.patch new file mode 100644 index 0000000000..87f4dc9813 --- /dev/null +++ b/main/graphite2/cmake.patch @@ -0,0 +1,23 @@ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 89a59af..b69e244 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -120,11 +120,7 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") + if (${CMAKE_CXX_COMPILER} MATCHES ".*mingw.*") + target_link_libraries(graphite2 kernel32 msvcr90 mingw32 gcc user32) + else (${CMAKE_CXX_COMPILER} MATCHES ".*mingw.*") +- if (GRAPHITE2_SANITIZERS) +- target_link_libraries(graphite2 c gcc_s) +- else () +- target_link_libraries(graphite2 c gcc) +- endif () ++ target_link_libraries(graphite2 c gcc_s -lssp_nonshared) + endif (${CMAKE_CXX_COMPILER} MATCHES ".*mingw.*") + include(Graphite) + if (BUILD_SHARED_LIBS) +@@ -153,4 +149,4 @@ endif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") + + + install(TARGETS graphite2 EXPORT graphite2 LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX} PUBLIC_HEADER DESTINATION include/graphite2 RUNTIME DESTINATION bin) +-install(EXPORT graphite2 DESTINATION share/graphite2 NAMESPACE gr2_) ++install(EXPORT graphite2 DESTINATION lib${LIB_SUFFIX}/cmake/graphite2 NAMESPACE gr2_) |
