Commit 84e478ee authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

SuperBuild: PATCH: remove gcc 4.1.2 patch

parent 86293250
......@@ -162,10 +162,4 @@ ExternalProject_Add(ITK
set(ITK_DIFF_FILES ${CMAKE_SOURCE_DIR}/patches/ITK/itk-1-fftw-all.diff)
if(UNIX AND NOT APPLE)
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.2)
set (ITK_DIFF_FILES "${ITK_DIFF_FILES} ${CMAKE_SOURCE_DIR}/patches/ITK/itk-2-dlopen_gcc41-linux.diff")
endif()
endif()
SUPERBUILD_PATCH_SOURCE(ITK "" ${ITK_DIFF_FILES})
#Purpose: loading application via python fails This was due to exporting symbols from shared library
#GCC FAQ says to add RTLD_GLOBAL flag when using dlopen apart from -Wl,-E linker flags
diff -burN InsightToolkit-4.10.0.orig/Modules/ThirdParty/KWSys/src/KWSys/DynamicLoader.cxx InsightToolkit-4.10.0/Modules/ThirdParty/KWSys/src/KWSys/DynamicLoader.cxx
--- InsightToolkit-4.10.0.orig/Modules/ThirdParty/KWSys/src/KWSys/DynamicLoader.cxx 2016-08-17 11:32:27.000000000 +0200
+++ InsightToolkit-4.10.0/Modules/ThirdParty/KWSys/src/KWSys/DynamicLoader.cxx 2016-08-17 11:33:16.000000000 +0200
@@ -491,7 +491,7 @@
//----------------------------------------------------------------------------
DynamicLoader::LibraryHandle DynamicLoader::OpenLibrary(const std::string& libname )
{
- return dlopen(libname.c_str(), RTLD_LAZY);
+ return dlopen(libname.c_str(), RTLD_LAZY | RTLD_GLOBAL );
}
//----------------------------------------------------------------------------
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment