aports/community/inkscape/fix-Werror.patch
Milan P. Stanić d3d262317f community/inkscape: upgrade to 1.0
remove fix-python.patch, not needed for this version
add fix-Werror.patch, fixes -Werror flag in cmake files
add dependencies which are needed to build this version
'make -j1' to fix fails on parallel build
2020-05-10 17:17:59 +00:00

14 lines
685 B
Diff

Fix -Werror flags, build fails with them
--- a/CMakeScripts/DefineDependsandFlags.cmake
+++ b/CMakeScripts/DefineDependsandFlags.cmake
@@ -26,8 +26,6 @@
# Errors for common mistakes
list(APPEND INKSCAPE_CXX_FLAGS "-fstack-protector-strong")
-list(APPEND INKSCAPE_CXX_FLAGS "-Werror=format") # e.g.: printf("%s", std::string("foo"))
-list(APPEND INKSCAPE_CXX_FLAGS "-Werror=format-security") # e.g.: printf(variable);
list(APPEND INKSCAPE_CXX_FLAGS_DEBUG "-Og") # -Og for _FORTIFY_SOURCE. One could add -Weffc++ here to see approx. 6000 warnings
list(APPEND INKSCAPE_CXX_FLAGS_DEBUG "-D_GLIBCXX_ASSERTIONS")
if (CMAKE_COMPILER_IS_GNUCC)