aboutsummaryrefslogtreecommitdiffstats
path: root/main/graphite2/cmake.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-06-18 09:50:38 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-06-18 09:51:24 +0000
commit988c3763e7f52ca6f399513e7c893d4e2340b957 (patch)
treec54682142f372e6c591acf1ac044aae7bcaea929 /main/graphite2/cmake.patch
parent02c5be0411e10660cb62e374e692fa8ac7d4fa7c (diff)
downloadaports-988c3763e7f52ca6f399513e7c893d4e2340b957.tar.bz2
aports-988c3763e7f52ca6f399513e7c893d4e2340b957.tar.xz
main/graphite2: build fix for x86
we need -lssp_nonshared on alpine x86
Diffstat (limited to 'main/graphite2/cmake.patch')
-rw-r--r--main/graphite2/cmake.patch29
1 files changed, 16 insertions, 13 deletions
diff --git a/main/graphite2/cmake.patch b/main/graphite2/cmake.patch
index 41f1e51876..ffafa17d4a 100644
--- a/main/graphite2/cmake.patch
+++ b/main/graphite2/cmake.patch
@@ -1,13 +1,16 @@
---- ./tests/CMakeLists.txt.orig
-+++ ./tests/CMakeLists.txt
-@@ -58,7 +58,9 @@
- LINKER_LANGUAGE C)
- endif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
-
--add_subdirectory(comparerenderer)
-+if (GRAPHITE2_COMPARE_RENDERER)
-+ add_subdirectory(comparerenderer)
-+endif (GRAPHITE2_COMPARE_RENDERER)
- add_subdirectory(endian)
- add_subdirectory(bittwiddling)
- if (NOT GRAPHITE2_NFILEFACE)
+--- graphite2-1.2.0/src/CMakeLists.txt.orig 2012-11-09 17:48:04.908391335 +0800
++++ graphite2-1.2.0/src/CMakeLists.txt 2012-11-09 17:48:48.647102280 +0800
+@@ -118,11 +118,7 @@
+ if (${CMAKE_CXX_COMPILER} MATCHES ".*mingw.*")
+ target_link_libraries(graphite2 kernel32 msvcr90 mingw32 gcc user32)
+ else (${CMAKE_CXX_COMPILER} MATCHES ".*mingw.*")
+- if (GRAPHITE2_ASAN)
+- target_link_libraries(graphite2 c gcc_s)
+- else (GRAPHITE2_ASAN)
+- target_link_libraries(graphite2 c gcc)
+- endif (GRAPHITE2_ASAN)
++ target_link_libraries(graphite2 c gcc_s -lssp_nonshared)
+ include(Graphite)
+ nolib_test(stdc++ $<TARGET_SONAME_FILE:graphite2>)
+ endif (${CMAKE_CXX_COMPILER} MATCHES ".*mingw.*")
+