diff options
author | Matteo Bernardini | 2018-05-02 09:36:18 +0200 |
---|---|---|
committer | Matteo Bernardini | 2018-06-09 07:42:11 +0200 |
commit | d6dcd0ab5e6c4ed9d3733e9a1ad9cf41b78841d8 (patch) | |
tree | 9112b96a6881a734f49371c44a76b19fad755557 | |
parent | 81c344443219574587ae3d6bccb8f19c1bd346af (diff) | |
download | old.slackbuilds-FreeImage.tar.gz |
libraries/FreeImage: Fixes for the newer gcc and glibc.FreeImage
Disabled narrowing warnings (for gcc >= 6.x) and use
a non-conflicting function name (for glibc >= 2.27,
thanks to linuxtinker!)
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r-- | libraries/FreeImage/FreeImage.SlackBuild | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libraries/FreeImage/FreeImage.SlackBuild b/libraries/FreeImage/FreeImage.SlackBuild index 9787e0772a..d5e41f6c16 100644 --- a/libraries/FreeImage/FreeImage.SlackBuild +++ b/libraries/FreeImage/FreeImage.SlackBuild @@ -57,8 +57,11 @@ find -L . \ # Thanks to Christoph Willing patch -p0 < $CWD/010_avoid-raw-literal.diff +# Needed for glibc >= 2.27 +sed -i "s#powf64#dc_&#g" Source/LibRawLite/internal/dcraw_common.cpp || exit 1 + CFLAGS="$SLKCFLAGS -fexceptions -fvisibility=hidden -DNO_LCMS" \ -CXXFLAGS="$SLKCFLAGS -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy" \ +CXXFLAGS="$SLKCFLAGS -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -Wno-narrowing" \ make INSTALLDIR=$PKG/usr/lib${LIBDIRSUFFIX} DESTDIR=$PKG make install INSTALLDIR=$PKG/usr/lib${LIBDIRSUFFIX} DESTDIR=$PKG |