openimageio: fix build with gcc7
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
09434df6b2
commit
10ba29df5f
1 changed files with 3 additions and 1 deletions
|
@ -5,7 +5,7 @@ revision=2
|
||||||
wrksrc=oiio-Release-${version}
|
wrksrc=oiio-Release-${version}
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="-DUSE_OPENGL=0 -DUSE_QT=0 -DUSE_PYTHON=0 -DOIIO_BUILD_TESTS=0
|
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
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
i686*|x86_64*) configure_args+=" -DUSE_SIMD=sse2" ;;
|
i686*|x86_64*) configure_args+=" -DUSE_SIMD=sse2" ;;
|
||||||
esac
|
esac
|
||||||
|
@ -20,6 +20,8 @@ homepage="https://sites.google.com/site/openimageio/home"
|
||||||
distfiles="https://github.com/OpenImageIO/oiio/archive/Release-${version}.tar.gz"
|
distfiles="https://github.com/OpenImageIO/oiio/archive/Release-${version}.tar.gz"
|
||||||
checksum=669c59d06399dd882c3e2469bb3a4b33d537db150f6fe056495c3429b5c3838f
|
checksum=669c59d06399dd882c3e2469bb3a4b33d537db150f6fe056495c3429b5c3838f
|
||||||
|
|
||||||
|
CXXFLAGS="-faligned-new"
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
# Replace -isystem with -I to avoid "#include_next <stdlib.h>" file not found
|
# Replace -isystem with -I to avoid "#include_next <stdlib.h>" file not found
|
||||||
sed -i CMakeLists.txt -e "s;-isystem;-I;g"
|
sed -i CMakeLists.txt -e "s;-isystem;-I;g"
|
||||||
|
|
Loading…
Reference in a new issue