void-packages/srcpkgs/hydrogen/patches/cxxflags-from-env.patch
Michael Gehring b49f925a49 hydrogen: fix build
Fixes #4321
2016-06-11 17:10:34 +02:00

15 lines
448 B
Diff

--- CMakeLists.txt.orig 2016-06-11 17:03:52.532568896 +0200
+++ CMakeLists.txt 2016-06-11 17:04:03.094569441 +0200
@@ -97,12 +97,6 @@
ENDIF()
#SET(CMAKE_CXX_FLAGS "-fno-implement-inlines -finline-small-functions -findirect-inlining -fpartial-inlining")
-IF(APPLE)
- SET(CMAKE_CXX_FLAGS "-O2")
-ELSE()
- SET(CMAKE_CXX_FLAGS "-O2 -fno-implement-inlines")
-ENDIF()
-
SET(CMAKE_CXX_FLAGS_RELEASE "")
SET(CMAKE_CXX_FLAGS_DEBUG "-g ")#-Winline")