diff --git a/graphics/libfpx/export-symbols.patch b/graphics/libfpx/export-symbols.patch new file mode 100644 index 0000000000..dfb974bc71 --- /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 93ed195218..68cfc503d2 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 \