aboutsummaryrefslogtreecommitdiff
path: root/ports/tiff/fix-cxx-shared-libs.patch
blob: 37389ca8168ca5d437be1b120397fd5bbee3b639 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 4370dea04189fb9d9a94e1f4ee96ef2d24937fc9 Mon Sep 17 00:00:00 2001
From: Mikhail Paulyshka <me@mixaill.tk>
Date: Thu, 23 Mar 2017 17:55:14 +0300
Subject: [PATCH] fix shared libs building

---
 libtiff/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libtiff/CMakeLists.txt b/libtiff/CMakeLists.txt
index 087dfa9..20fa8b4 100644
--- a/libtiff/CMakeLists.txt
+++ b/libtiff/CMakeLists.txt
@@ -142,6 +142,7 @@ if(cxx)
   add_library(tiffxx ${tiffxx_SOURCES} ${tiffxx_HEADERS})
   target_link_libraries(tiffxx tiff)
   set_target_properties(tiffxx PROPERTIES SOVERSION ${SO_COMPATVERSION})
+  set_target_properties(tiffxx PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
   if(NOT CYGWIN)
     # This property causes shared libraries on Linux to have the full version
     # encoded into their final filename.  We disable this on Cygwin because
-- 
2.11.0.windows.1