void-packages/srcpkgs/crex/patches/fix-cflags.patch
Đoàn Trần Công Danh 106c7888e8 crex: hardening
2021-04-03 10:13:05 +07:00

20 lines
1,006 B
Diff

Index: crex-0.2.5/CMakeLists.txt
===================================================================
--- crex-0.2.5.orig/CMakeLists.txt
+++ crex-0.2.5/CMakeLists.txt
@@ -13,9 +13,6 @@ endif(CCACHE_FOUND)
set (CMAKE_CXX_STANDARD 14)
set (CMAKE_CXX_STANDARD_REQUIRED ON)
-set (CMAKE_CXX_FLAGS "-fdiagnostics-color=auto")
-set (CMAKE_C_FLAGS "-fdiagnostics-color=auto")
-
set (DEBUG_FLAGS "-Wpedantic -Wall -Wextra -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-include-dirs -Wnoexcept -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-null-sentinel -Wstrict-overflow=5 -Wswitch-default -Wundef -Wno-unused -std=c++14 -g")
set (DEBUG_LINK_FLAGS "-fprofile-arcs -ftest-coverage -flto")
@@ -56,4 +53,4 @@ target_link_libraries (
${TARGET}
)
-install (TARGETS ${TARGET} DESTINATION "/usr/local/bin")
+install (TARGETS ${TARGET} DESTINATION "/usr/bin")