diff options
author | Rashad Kanavath <rashad.kanavath@c-s.fr> | 2015-12-02 14:00:54 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2015-12-02 14:43:10 (GMT) |
commit | b317f60efb5215dae1c9c6419192822354af476f (patch) | |
tree | 26a2a56a56a467125c812e593ec9e6178a8bf69a /src | |
parent | cf5fb10422ddc6be4c9717fc08ccc98a093aaa8b (diff) | |
download | mxe-b317f60efb5215dae1c9c6419192822354af476f.zip mxe-b317f60efb5215dae1c9c6419192822354af476f.tar.gz mxe-b317f60efb5215dae1c9c6419192822354af476f.tar.bz2 |
itk: fix shared build
Diffstat (limited to 'src')
-rw-r--r-- | src/itk-1-gdmcsocket.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/itk-1-gdmcsocket.patch b/src/itk-1-gdmcsocket.patch new file mode 100644 index 0000000..ac656a5 --- /dev/null +++ b/src/itk-1-gdmcsocket.patch @@ -0,0 +1,26 @@ +diff -burN InsightToolkit-4.8.2.orig/Modules/ThirdParty/GDCM/src/gdcm/Utilities/socketxx/socket++/CMakeLists.txt InsightToolkit-4.8.2/Modules/ThirdParty/GDCM/src/gdcm/Utilities/socketxx/socket++/CMakeLists.txt +--- InsightToolkit-4.8.2.orig/Modules/ThirdParty/GDCM/src/gdcm/Utilities/socketxx/socket++/CMakeLists.txt 2015-12-02 13:19:53.030344390 +0100 ++++ InsightToolkit-4.8.2/Modules/ThirdParty/GDCM/src/gdcm/Utilities/socketxx/socket++/CMakeLists.txt 2015-12-02 13:32:36.094384138 +0100 +@@ -6,6 +6,8 @@ + include(CheckFunctionExists) + CHECK_FUNCTION_EXISTS(strsignal SOCKETXX_HAVE_STRSIGNAL) + ++add_definitions(-Dsocketxx_EXPORTS) ++ + # specific + if(WIN32) + else() +@@ -67,6 +69,8 @@ + ) + endif() + ++set(GDCM_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS}) ++ + add_library(${SOCKETXX_LIBRARY_NAME} ${libsocket___la_SOURCES}) + if(WIN32) + target_link_libraries(${SOCKETXX_LIBRARY_NAME} ws2_32.lib) +@@ -103,4 +107,3 @@ + DESTINATION ${SOCKETXX_INSTALL_INCLUDE_DIR} COMPONENT Headers + ) + endif() +- |