summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2014-06-25 13:00:47 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2014-06-25 13:00:47 +0000
commit22d59dd2d81ef047829c911e6c8dd433ec1f27d1 (patch)
treef8fd6b90b8a7c06fdfd0fd210bb6c0aff014cdfb
parent1e32b9a2242334c5c43b6709a38dd02a21191d63 (diff)
texk/dvisvgm: Cygwin soname for gs library
git-svn-id: svn://tug.org/texlive/trunk@34403 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.7-PATCHES/ChangeLog4
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.7-PATCHES/patch-01-cygwin15
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.7/src/Ghostscript.cpp4
3 files changed, 23 insertions, 0 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.7-PATCHES/ChangeLog b/Build/source/texk/dvisvgm/dvisvgm-1.7-PATCHES/ChangeLog
index 08018be1a7f..5459329ba65 100644
--- a/Build/source/texk/dvisvgm/dvisvgm-1.7-PATCHES/ChangeLog
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.7-PATCHES/ChangeLog
@@ -1,3 +1,7 @@
+2014-06-25 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * patch-01-cygwin (new): Cygwin soname for gs library.
+
2014-06-20 Peter Breitenlohner <peb@mppmu.mpg.de>
* Import release 1.7.
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.7-PATCHES/patch-01-cygwin b/Build/source/texk/dvisvgm/dvisvgm-1.7-PATCHES/patch-01-cygwin
new file mode 100644
index 00000000000..47f5f74531a
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.7-PATCHES/patch-01-cygwin
@@ -0,0 +1,15 @@
+diff -ur dvisvgm-1.7.orig/src/Ghostscript.cpp dvisvgm-1.7/src/Ghostscript.cpp
+--- dvisvgm-1.7.orig/src/Ghostscript.cpp 2014-06-10 15:05:24.000000000 +0200
++++ dvisvgm-1.7/src/Ghostscript.cpp 2014-06-25 11:45:36.000000000 +0200
+@@ -63,7 +63,11 @@
+ const int abi_min=7, abi_max=9; // supported libgs ABI versions
+ for (int i=abi_max; i >= abi_min; i--) {
+ ostringstream oss;
++#if defined(__CYGWIN__)
++ oss << "cyggs-" << i << ".dll";
++#else
+ oss << "libgs.so." << i;
++#endif
+ DLLoader loader(oss.str().c_str());
+ if (loader.loaded())
+ return oss.str();
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.7/src/Ghostscript.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.7/src/Ghostscript.cpp
index 35d11ac4ad2..de3ec1b7568 100644
--- a/Build/source/texk/dvisvgm/dvisvgm-1.7/src/Ghostscript.cpp
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.7/src/Ghostscript.cpp
@@ -63,7 +63,11 @@ static string get_libgs (const string &fname) {
const int abi_min=7, abi_max=9; // supported libgs ABI versions
for (int i=abi_max; i >= abi_min; i--) {
ostringstream oss;
+#if defined(__CYGWIN__)
+ oss << "cyggs-" << i << ".dll";
+#else
oss << "libgs.so." << i;
+#endif
DLLoader loader(oss.str().c_str());
if (loader.loaded())
return oss.str();