diff options
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 \ |