diff options
Diffstat (limited to 'gentoo/media-libs/lcms/files')
-rw-r--r-- | gentoo/media-libs/lcms/files/lcms-1.19-disable_static_modules.patch | 20 | ||||
-rw-r--r-- | gentoo/media-libs/lcms/files/lcms-1.19-implicit.patch | 49 |
2 files changed, 69 insertions, 0 deletions
diff --git a/gentoo/media-libs/lcms/files/lcms-1.19-disable_static_modules.patch b/gentoo/media-libs/lcms/files/lcms-1.19-disable_static_modules.patch new file mode 100644 index 000000000..15e19eeb9 --- /dev/null +++ b/gentoo/media-libs/lcms/files/lcms-1.19-disable_static_modules.patch @@ -0,0 +1,20 @@ +--- a/python/Makefile.am ++++ b/python/Makefile.am +@@ -22,7 +22,7 @@ + + endif + +-_lcms_la_LDFLAGS = -no-undefined -module -avoid-version \ ++_lcms_la_LDFLAGS = -no-undefined -module -avoid-version -shared \ + -L$(LCMS_PYLIB)/config + + _lcms_la_LIBADD = $(top_builddir)/src/liblcms.la -lpython$(PYTHON_VERSION) +@@ -31,7 +31,7 @@ + + _lcms_la_CPPFLAGS = -I$(PYTHON_PREFIX)/include/python$(PYTHON_VERSION) \ + -I$(LCMS_PYINCLUDE) \ +- $(AM_CPPFLAGS) ++ $(AM_CPPFLAGS) -shared + + + EXTRA_DIST = lcms.py lcms.i testbed swig_lcms diff --git a/gentoo/media-libs/lcms/files/lcms-1.19-implicit.patch b/gentoo/media-libs/lcms/files/lcms-1.19-implicit.patch new file mode 100644 index 000000000..d80472273 --- /dev/null +++ b/gentoo/media-libs/lcms/files/lcms-1.19-implicit.patch @@ -0,0 +1,49 @@ +cmsio1.c: In function 'AdjustEndianessArray16': +cmsio1.c:118: warning: implicit declaration of function 'swab' +testcms.c: In function 'CheckSwab': +testcms.c:113: warning: implicit declaration of function 'swab' +================================================================================ +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -6,6 +6,9 @@ + # Don't require all the GNU mandated files + AUTOMAKE_OPTIONS = 1.7 foreign + ++# _XOPEN_SOURCE is required for swab() but undefines strcasecmp(), so add _GNU_SOURCE as well: ++AM_CPPFLAGS = -D_XOPEN_SOURCE -D_GNU_SOURCE ++ + includedir = ${prefix}/include + + # Shared libraries built in this directory +--- a/src/cmsio1.c ++++ b/src/cmsio1.c +@@ -24,6 +24,7 @@ + + + #include "lcms.h" ++#include <unistd.h> + + // ----------------------------------------------------------------- Tag Serialization + +--- a/testbed/Makefile.am ++++ b/testbed/Makefile.am +@@ -6,6 +6,9 @@ + # Don't require all the GNU mandated files + AUTOMAKE_OPTIONS = 1.7 foreign + ++# Required for swab() ++AM_CPPFLAGS = -D_XOPEN_SOURCE ++ + INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include + + check_PROGRAMS = testcms +--- a/testbed/testcms.c ++++ b/testbed/testcms.c +@@ -36,6 +36,7 @@ + #include <time.h> + #include <stdio.h> + #include <stdlib.h> ++#include <unistd.h> + + #ifndef NON_WINDOWS + #include <icm.h> |