diff options
author | Matteo Bernardini | 2019-01-26 08:45:09 +0100 |
---|---|---|
committer | Matteo Bernardini | 2019-01-26 08:45:09 +0100 |
commit | 9d2325989c32357338a62d378cfa5e9ed623aaba (patch) | |
tree | 60d0ddf2ffebb1920f3813908104b97c3b42c484 /graphics/openimageio/openimageio.SlackBuild | |
parent | f8717ee2eb30c24fb4e808057c85e9d3d598a2c5 (diff) | |
download | slackbuilds-current-20190126.1.tar.gz |
20190126.1 global branch merge.current-20190126.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'graphics/openimageio/openimageio.SlackBuild')
-rw-r--r-- | graphics/openimageio/openimageio.SlackBuild | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/graphics/openimageio/openimageio.SlackBuild b/graphics/openimageio/openimageio.SlackBuild index f96cd057de..31d3f9833f 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 \ |