summaryrefslogtreecommitdiff
path: root/libcdr
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-03-19 09:40:19 +0200
committerTor Lillqvist <tlillqvist@suse.com>2012-03-19 09:40:19 +0200
commit85f074554788e2d8da73e77855ca06bc0fdfbaa4 (patch)
treed905714cf0f9dff96adfb6cec4406d73f9d5844c /libcdr
parentfc95d20500997a1a460be6f3553727299a5080eb (diff)
lcms2 uses stdcall for some reason
Diffstat (limited to 'libcdr')
-rw-r--r--libcdr/libcdr-0.0.5.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/libcdr/libcdr-0.0.5.patch b/libcdr/libcdr-0.0.5.patch
index b622bd6a45e0..279c365e346b 100644
--- a/libcdr/libcdr-0.0.5.patch
+++ b/libcdr/libcdr-0.0.5.patch
@@ -18,3 +18,18 @@
#endif
+--- misc/libcdr-0.0.5/src/lib/makefile.mk
++++ misc/build/libcdr-0.0.5/src/lib/makefile.mk
+@@ -32,6 +32,12 @@
+ INCPRE+=$(LCMS2_CFLAGS)
+ .ELSE
+ INCPRE+=$(SOLARVER)$/$(INPATH)$/inc$/lcms2
++.IF "$(COM)" == "MSC"
++# lcms2 gets built to use the stdcall calling convention, for some reason.
++# The lcms2 headers need this in order to decorate functions with stdcall,
++# so that they will be found when linking.
++CDEFS+=-DCMS_DLL
++.ENDIF
+ .ENDIF
+
+ .IF "$(SYSTEM_ZLIB)" != "YES"