diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2021-08-29 07:43:36 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-08-30 06:55:49 +0700 |
commit | c2db507c27e5a1789b091843af25e31955a39acd (patch) | |
tree | ee81fd3da2966d587d6fa1a544b0d93be641f01f /graphics/libfpx | |
parent | 8120c842f6cc248b03c361bae8fb0b0463892985 (diff) |
graphics/libfpx: Patch for gcc >= 10.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/libfpx')
-rw-r--r-- | graphics/libfpx/export-symbols.patch | 14 | ||||
-rw-r--r-- | graphics/libfpx/libfpx.SlackBuild | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/graphics/libfpx/export-symbols.patch b/graphics/libfpx/export-symbols.patch new file mode 100644 index 000000000000..dfb974bc7164 --- /dev/null +++ b/graphics/libfpx/export-symbols.patch @@ -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 diff --git a/graphics/libfpx/libfpx.SlackBuild b/graphics/libfpx/libfpx.SlackBuild index 93ed19521878..68cfc503d257 100644 --- a/graphics/libfpx/libfpx.SlackBuild +++ b/graphics/libfpx/libfpx.SlackBuild @@ -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 \ |