From 10ba29df5f2deda82e4a80190d519066b0c80cd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Tue, 27 Mar 2018 17:27:00 +0200 Subject: [PATCH] openimageio: fix build with gcc7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Buchmüller --- srcpkgs/openimageio/template | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/srcpkgs/openimageio/template b/srcpkgs/openimageio/template index 0c7a33767d..ce6477b16e 100644 --- a/srcpkgs/openimageio/template +++ b/srcpkgs/openimageio/template @@ -5,7 +5,7 @@ revision=2 wrksrc=oiio-Release-${version} build_style=cmake configure_args="-DUSE_OPENGL=0 -DUSE_QT=0 -DUSE_PYTHON=0 -DOIIO_BUILD_TESTS=0 - -DCMAKE_SYSTEM_PROCESSOR=${XBPS_TARGET_MACHINE}" + -DSTOP_ON_WARNING=0 -DCMAKE_SYSTEM_PROCESSOR=${XBPS_TARGET_MACHINE}" case "$XBPS_TARGET_MACHINE" in i686*|x86_64*) configure_args+=" -DUSE_SIMD=sse2" ;; esac @@ -20,6 +20,8 @@ homepage="https://sites.google.com/site/openimageio/home" distfiles="https://github.com/OpenImageIO/oiio/archive/Release-${version}.tar.gz" checksum=669c59d06399dd882c3e2469bb3a4b33d537db150f6fe056495c3429b5c3838f +CXXFLAGS="-faligned-new" + pre_build() { # Replace -isystem with -I to avoid "#include_next " file not found sed -i CMakeLists.txt -e "s;-isystem;-I;g"