From cfa130d5944650edbdb6e9bc58330f2163ab107d Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Sat, 6 Jul 2019 17:53:53 +0200 Subject: 20190706.1 global branch merge. Signed-off-by: Matteo Bernardini --- graphics/openimageio/openimageio.SlackBuild | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'graphics/openimageio/openimageio.SlackBuild') diff --git a/graphics/openimageio/openimageio.SlackBuild b/graphics/openimageio/openimageio.SlackBuild index f96cd057de..54a0c70b7b 100644 --- a/graphics/openimageio/openimageio.SlackBuild +++ b/graphics/openimageio/openimageio.SlackBuild @@ -77,14 +77,17 @@ find -L . \ # Remove bundled pugixml #rm -f src/include/OpenImageIO/pugi* -# save this for GCC 7.0 -#sed -i "s|std=c++11|std=c++11 -Wno-error=maybe-uninitialized -Wno-error=format-truncation -Wno-error=noexcept-type -faligned-new|" CMakeLists.txt +# newer compilers are stricter +ADD_FLAGS="-Wno-error=maybe-uninitialized -Wno-error=format-truncation -Wno-error=noexcept-type -faligned-new -Wno-error=stringop-truncation -Wno-error=sizeof-pointer-memaccess -Wno-error=class-memaccess" + +# needed for the newer boost +sed -i "s|python-py|python|" src/python/CMakeLists.txt mkdir -p build cd build cmake ../ \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -std=c++11" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -std=c++11 $ADD_FLAGS" \ -DOPENJPEG_INCLUDE_DIR="/usr/include/openmj2-2.1" \ -DOPENJPEG_OPENJPEG_LIBRARIES="openmj2" \ -DCMAKE_BUILD_TYPE=Release \ @@ -99,6 +102,7 @@ cd build -DUSE_PYTHON:BOOL=TRUE \ -DUSE_PYTHON3:BOOL=TRUE \ -DUSE_EXTERNAL_PUGIXML:BOOL=FALSE \ + -DBoost_NO_BOOST_CMAKE=ON make make install DESTDIR=$PKG -- cgit v1.2.3