diff options
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(); |