void-packages/srcpkgs/apvlv/patches/cxxflags_from_env.patch
Michael Gehring ae72c4f894 apvlv: fix build
Fixes #4760
2016-09-14 01:52:56 +02:00

11 lines
445 B
Diff

--- src/CMakeLists.txt.orig 2016-09-14 01:48:05.822928918 +0200
+++ src/CMakeLists.txt 2016-09-14 01:48:54.906931451 +0200
@@ -1,7 +1,7 @@
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 infomations." OFF)
IF (APVLV_ENABLE_DEBUG)