ALT Linux repos
S: | 10.01.1-alt1 |
5.0: | 8.64-alt3 |
4.1: | 8.63-alt0.M41.4 |
4.0: | 8.15.4-alt1.M40.4 |
+updates: | 8.15.4-alt1.M40.4 |
3.0: | 7.07.1-alt7 |
Group :: Publishing
RPM: ghostscript
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: espgs-alt-visibility.patch
Download
Download
diff --git a/espgs/src/configure.ac b/espgs/src/configure.ac
index 29c5a97..06f6506 100644
--- a/espgs/base/configure.ac
+++ b/espgs/base/configure.ac
@@ -791,7 +791,7 @@ AC_ARG_ENABLE(dynamic, [ --enable-dynamic enable dynamically loaded driv
[ case `uname` in
Linux*)
INSTALL_SHARED="install-shared"
- DYNAMIC_CFLAGS="-fPIC"
+ DYNAMIC_CFLAGS="-fPIC -fvisibility=hidden -D_Linux"
if test "x$X_DEVS" != x; then
DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so"
else
diff --git a/espgs/src/iapi.h b/espgs/src/iapi.h
index ca49da3..e2ee08e 100644
--- a/espgs/psi/iapi.h
+++ b/espgs/psi/iapi.h
@@ -82,6 +82,12 @@ extern "C" {
# pragma export on
#endif
+#ifdef _Linux
+# ifndef GSDLLEXPORT
+# define GSDLLEXPORT __attribute__((__visibility__("default")))
+# endif
+#endif /* _Linux */
+
#ifndef GSDLLEXPORT
# define GSDLLEXPORT
#endif