diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2013-11-23 00:41:20 +0100 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2013-11-23 00:50:06 +0100 |
commit | 29b1f9e4c69e8a587997960e42832555ecd21c9c (patch) | |
tree | ee170f1cda5465b44d0b9d79984ce7641d58d9aa /cmake | |
parent | 8ed542a8813b0275654ed6c8efa64a0149bb9d6f (diff) | |
download | colobot-29b1f9e4c69e8a587997960e42832555ecd21c9c.tar.gz colobot-29b1f9e4c69e8a587997960e42832555ecd21c9c.tar.bz2 colobot-29b1f9e4c69e8a587997960e42832555ecd21c9c.zip |
Fix for error with multiple definitions in MXE build
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/mxe.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/mxe.cmake b/cmake/mxe.cmake index 9bb38d0..2c24b1b 100644 --- a/cmake/mxe.cmake +++ b/cmake/mxe.cmake @@ -41,6 +41,8 @@ if((${CMAKE_CROSSCOMPILING}) AND (DEFINED MSYS)) ${CMAKE_FIND_ROOT_PATH}/lib/libbz2.a ${OPENAL_MXE_LIBS} ) + # This fixes problem with multiple definition of `IID_IDirectSoundNotify' + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--allow-multiple-definition") else() set(MXE 0) -endif()
\ No newline at end of file +endif() |