From: Amine Khaldi Date: Thu, 11 Sep 2014 10:13:05 +0000 (+0000) Subject: [GLU32] X-Git-Tag: backups/0.3.17@66124~609 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=d84558f23a62c3344a1071d8c5008a44a4392ba8 [GLU32] * Link with mingwex. * Allow multiple definitions at link time because longjmp exists in both our msvcrt and mingwex. CORE-8516 svn path=/trunk/; revision=64113 --- diff --git a/reactos/dll/opengl/glu32/CMakeLists.txt b/reactos/dll/opengl/glu32/CMakeLists.txt index bb874f69134..4c15d12325e 100644 --- a/reactos/dll/opengl/glu32/CMakeLists.txt +++ b/reactos/dll/opengl/glu32/CMakeLists.txt @@ -114,6 +114,11 @@ set_module_type(glu32 win32dll) if(NOT MSVC) add_target_compile_flags(glu32 "-Wno-write-strings -Wno-unused-but-set-variable") + if(CMAKE_C_COMPILER_ID STREQUAL "Clang") + target_link_libraries(glu32 mingwex) + #FIXME: longjmp exists in both our msvcrt and mingwex + add_target_link_flags(glu32 "-Wl,--allow-multiple-definition") + endif() endif() add_importlibs(glu32 opengl32 gdi32 msvcrt kernel32 ntdll)