From b3723a0bfefae301282eabd21e3c90f0316cb2a0 Mon Sep 17 00:00:00 2001 From: Alex Neundorf Date: Mon, 18 Feb 2013 19:35:26 +0100 Subject: remove -Wl,--disable-auto-import from mingw options Same as 21c3f0bed3b758baefb9b760efb0c2dd by Patrick von Reth in kdelibs. He says: "dont disable auto-import, to make it possible to build with a newer mingw which doesnt have proper exports for c++ standart libs The problem occurs with all gcc versions newer then 4.4. In preparation for Qt5 I started to work with newer builds, currently 4.7.2. The change should not have any negative effects on 4.4 and earlier versions, but is essential to make it build with a newer version." Alex --- kde-modules/KDECompilerSettings.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kde-modules/KDECompilerSettings.cmake b/kde-modules/KDECompilerSettings.cmake index dde44674..b628e40f 100644 --- a/kde-modules/KDECompilerSettings.cmake +++ b/kde-modules/KDECompilerSettings.cmake @@ -315,8 +315,8 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") # gcc under Windows if (MINGW) - set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--export-all-symbols -Wl,--disable-auto-import") - set (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--export-all-symbols -Wl,--disable-auto-import") + set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--export-all-symbols") + set (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--export-all-symbols") endif () # TODO : with CMake 2.8.11 this can be removed, it will work automatically -- cgit v1.2.1