openexr: fix gcc6 build
This commit is contained in:
@@ -14,6 +14,16 @@ checksum="36a012f6c43213f840ce29a8b182700f6cf6b214bea0d5735594136b44914231"
|
|||||||
|
|
||||||
LDFLAGS="-lrt"
|
LDFLAGS="-lrt"
|
||||||
|
|
||||||
|
_gccver="$(gcc --version | awk '/^gcc \(GCC\)/ { print $3 }')"
|
||||||
|
if [ "${_gccver%%.*}" -gt 5 ]; then
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
*-musl) # gcc6 fails with internal error
|
||||||
|
CFLAGS="-Os"
|
||||||
|
CXXFLAGS="-Os"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
post_configure() {
|
post_configure() {
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
# Don't try to rebuild these header files when cross compiling
|
# Don't try to rebuild these header files when cross compiling
|
||||||
|
|||||||
Reference in New Issue
Block a user