From 07b4d8bbca2ad9d4826d9d37b1ef9b19b6489879 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 16 Feb 2004 09:50:06 -0500 Subject: [PATCH] BUG: fix mingw module load tests --- Modules/Platform/Windows-gcc.cmake | 1 - Source/cmDynamicLoader.cxx | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Modules/Platform/Windows-gcc.cmake b/Modules/Platform/Windows-gcc.cmake index d12378f19..c38df8517 100644 --- a/Modules/Platform/Windows-gcc.cmake +++ b/Modules/Platform/Windows-gcc.cmake @@ -3,7 +3,6 @@ SET(CMAKE_STATIC_LIBRARY_PREFIX "lib") SET(CMAKE_STATIC_LIBRARY_SUFFIX ".a") SET(CMAKE_SHARED_LIBRARY_PREFIX "lib") # lib SET(CMAKE_SHARED_LIBRARY_SUFFIX ".dll") # .so -SET(CMAKE_SHARED_MODULE_PREFIX "") SET(CMAKE_DL_LIBS "") SET(CMAKE_SHARED_LIBRARY_C_FLAGS "") # -pic SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared") # -shared diff --git a/Source/cmDynamicLoader.cxx b/Source/cmDynamicLoader.cxx index 8a936103f..9f91dd8dc 100644 --- a/Source/cmDynamicLoader.cxx +++ b/Source/cmDynamicLoader.cxx @@ -274,7 +274,11 @@ cmDynamicLoader::GetSymbolAddress(cmLibHandle lib, const char* sym) const char* cmDynamicLoader::LibPrefix() { +#if defined( __MINGW32__ ) + return "lib"; +#else return ""; +#endif } const char* cmDynamicLoader::LibExtension()