slackbuilds_ponce/graphics/libfpx/export-symbols.patch
Matteo Bernardini c2db507c27
graphics/libfpx: Patch for gcc >= 10.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2021-08-30 06:55:49 +07:00

14 lines
347 B
Diff

* 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