mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-26 22:06:35 +01:00
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:
parent
8120c842f6
commit
c2db507c27
2 changed files with 16 additions and 0 deletions
14
graphics/libfpx/export-symbols.patch
Normal file
14
graphics/libfpx/export-symbols.patch
Normal 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
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue