aboutsummaryrefslogtreecommitdiff
path: root/ports/graphicsmagick/dynamic_bzip2.patch
blob: e2bf953852fd1d5e48d154263009d70861318ef5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Josue Andrade Gomes <josuegomes@gmail.com>
Date: Tue, 18 Apr 2017 09:56:53 -0300
Subject: [PATCH] dynamic bzip2 only if dynamic gm

---

diff -ur a/magick/nt_base.h b/magick/nt_base.h
--- a/magick/nt_base.h	Mon May 30 14:19:55 2016
+++ b/magick/nt_base.h	Mon Apr 17 15:10:01 2017
@@ -275,7 +275,9 @@
 */
 #if defined(HasBZLIB)
 #  if defined(_WIN32)
-#    define BZ_IMPORT 1
+#    if defined(_DLL)    // For vcpkg. Building GM DLL requires BZIP2 DLL too, otherwise static
+#      define BZ_IMPORT 1
+#    endif
 #  endif
 #endif /* defined(HasBZLIB) */