void-packages/srcpkgs/apvlv/patches/cxxflags_from_env.patch

12 lines
482 B
Diff

--- a/src/CMakeLists.txt 2016-09-14 01:48:05.822928918 +0200
+++ b/src/CMakeLists.txt 2016-09-14 01:48:54.906931451 +0200
@@ -3,7 +3,7 @@ ADD_COMPILE_OPTIONS(-std=c++11)
IF (WIN32)
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
ELSE (WIN32)
- SET(CMAKE_CXX_FLAGS "-Wall -fno-strict-aliasing")
+ SET(CMAKE_CXX_FLAGS "-Wall -fno-strict-aliasing ${CMAKE_CXX_FLAGS}")
OPTION(APVLV_ENABLE_DEBUG "If build binary with debug information." OFF)
IF (APVLV_ENABLE_DEBUG)