summaryrefslogtreecommitdiff
path: root/base/lcms2mt.mak
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2020-04-27 10:20:00 +0100
committerChris Liddell <chris.liddell@artifex.com>2020-04-27 11:16:59 +0100
commitf210e4c009f7d401767336a264c2e4b9cf668216 (patch)
tree95728b0ebfc6e12963d78739e04bedd2ce436f13 /base/lcms2mt.mak
parent7c96228899ea05b40cdb31dc5a4c3f61aa0d39e6 (diff)
downloadghostpdl-f210e4c009f7d401767336a264c2e4b9cf668216.tar.gz
Bug 702349: Fix symbol clash between lcms2mt and lcms2
Shared library (libgs) with lcms2mt could clash if the calling app also included lcms2. Using gcc (or compatible) this builds lcms2mt using the -fvisibility=hidden option, so symbols are not exported.
Diffstat (limited to 'base/lcms2mt.mak')
-rw-r--r--base/lcms2mt.mak2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/lcms2mt.mak b/base/lcms2mt.mak
index dc7352150..689745790 100644
--- a/base/lcms2mt.mak
+++ b/base/lcms2mt.mak
@@ -80,7 +80,7 @@ lcms2.config-clean :
# NB: we can't use the normal $(CC_) here because msvccmd.mak
# adds /Za which conflicts with the lcms source.
-LCMS2_CC=$(CC) $(D_)SHARE_LCMS=$(SHARE_LCMS)$(_D) $(GENOPT) $(CAPOPT) $(CFLAGS) $(LCMS2_CFLAGS) $(I_)$(LCMS2MTSRCDIR)$(D)include $(LCMS2CF_)
+LCMS2_CC=$(CC) $(CFLAGS_VISIBILITY) $(D_)SHARE_LCMS=$(SHARE_LCMS)$(_D) $(GENOPT) $(CAPOPT) $(CFLAGS) $(LCMS2_CFLAGS) $(I_)$(LCMS2MTSRCDIR)$(D)include $(LCMS2CF_)
LCMS2O_=$(O_)$(LCMS2OBJ)
# switch in the version of lcms2mt.dev we're actually using