X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=cmake%2FgmxManageSharedLibraries.cmake;h=0cfab0ce68c2c876b9b810c9961a6f0fbba7e781;hb=d28a7507ff76705ebc959ec060b55a93998b6379;hp=fced521e952c7c254a6ae553b181c617a8385992;hpb=b13c96f5733a070e2c9f497cf81055bbab85b28f;p=alexxy%2Fgromacs.git diff --git a/cmake/gmxManageSharedLibraries.cmake b/cmake/gmxManageSharedLibraries.cmake index fced521e95..0cfab0ce68 100644 --- a/cmake/gmxManageSharedLibraries.cmake +++ b/cmake/gmxManageSharedLibraries.cmake @@ -118,7 +118,11 @@ IF( WIN32 AND NOT CYGWIN) message(WARNING "Shared system libraries requested, and static Gromacs libraries requested.") endif() else() - message(FATAL_ERROR "BUILD_SHARED_LIBS=ON not yet working for Windows in the master branch") + if(MINGW) + set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--export-all-symbols ${CMAKE_SHARED_LINKER_FLAGS}") + else() + message(FATAL_ERROR "BUILD_SHARED_LIBS=ON not yet working for Windows in the master branch") + endif() if(GMX_PREFER_STATIC_LIBS) #this combination segfaults (illegal passing of file handles) message(FATAL_ERROR "Static system libraries requested, and shared Gromacs libraries requested.")