Are you sure that we will link to the correct one? I doubt that the one
from mingwex is compatible.


Am 11.09.2014 12:13, schrieb akha...@svn.reactos.org:
> Author: akhaldi
> Date: Thu Sep 11 10:13:05 2014
> New Revision: 64113
>
> URL: http://svn.reactos.org/svn/reactos?rev=64113&view=rev
> Log:
> [GLU32]
> * Link with mingwex.
> * Allow multiple definitions at link time because longjmp exists in both our 
> msvcrt and mingwex.
> CORE-8516
>
> Modified:
>     trunk/reactos/dll/opengl/glu32/CMakeLists.txt
>
> Modified: trunk/reactos/dll/opengl/glu32/CMakeLists.txt
> URL: 
> http://svn.reactos.org/svn/reactos/trunk/reactos/dll/opengl/glu32/CMakeLists.txt?rev=64113&r1=64112&r2=64113&view=diff
> ==============================================================================
> --- trunk/reactos/dll/opengl/glu32/CMakeLists.txt     [iso-8859-1] (original)
> +++ trunk/reactos/dll/opengl/glu32/CMakeLists.txt     [iso-8859-1] Thu Sep 11 
> 10:13:05 2014
> @@ -114,6 +114,11 @@
>  
>  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)
>
>
>


_______________________________________________
Ros-dev mailing list
Ros-dev@reactos.org
http://www.reactos.org/mailman/listinfo/ros-dev

Reply via email to