graphics/libfpx: Patch for gcc >= 10.x.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2021-08-29 07:43:36 +02:00 committed by Willy Sudiarto Raharjo
parent 8120c842f6
commit c2db507c27
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,14 @@
* At least the Darwin linker doesn't like double symbols during the
final linking stage...
--- a/jpeg/jpegconf.h
+++ b/jpeg/jpegconf.h
@@ -27,6 +27,6 @@
# pragma warning(disable : 4244)
# pragma warning(disable : 4142)
#else
-# define JPEGEXPORT
-# define FPXEXPORT
+# define JPEGEXPORT extern
+# define FPXEXPORT extern
#endif

View file

@ -64,6 +64,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
patch -p1 < $CWD/export-symbols.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \