diff --git a/srcpkgs/hydrogen/patches/cxxflags-from-env.patch b/srcpkgs/hydrogen/patches/cxxflags-from-env.patch new file mode 100644 index 0000000000..9c1218a39f --- /dev/null +++ b/srcpkgs/hydrogen/patches/cxxflags-from-env.patch @@ -0,0 +1,15 @@ +--- 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") diff --git a/srcpkgs/hydrogen/template b/srcpkgs/hydrogen/template index 75ac7885a6..00f35c35d6 100644 --- a/srcpkgs/hydrogen/template +++ b/srcpkgs/hydrogen/template @@ -1,7 +1,7 @@ # Template file for 'hydrogen' pkgname=hydrogen version=0.9.6.1 -revision=1 +revision=2 build_style=cmake configure_args="-DWANT_LRDF=ON -DWANT_CPPUNIT=OFF" hostmakedepends="pkg-config cmake" @@ -14,3 +14,5 @@ license="GPL-2" homepage="http://www.hydrogen-music.org/" distfiles="https://github.com/hydrogen-music/hydrogen/archive/${version}.tar.gz" checksum=94dadf433f0abbe7e0ae8e037726b3573f8b59abf118c9c084f06c561d56b66f + +export CXXFLAGS="-fno-implement-inlines"