We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5230

Summary: Can't cross-compile from linux with MinGW-w64
Product: SDL Reporter: Unarelith <quent42340>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.10   
Hardware: x86_64   
OS: Linux   

Description Unarelith 2020-07-13 11:39:04 UTC
When trying to cross-compile latest SDL2 commit on Arch with mingw-w64-cmake (CMake 3.17.3), it gives the following errors:

CMake Error at external/gamekit/external/SDL2/CMakeLists.txt:2186 (add_library):
  Target "SDL2-static" links to item "-Wl,-O1,--sort-common,--as-needed
  -fstack-protector " which has leading or trailing whitespace.  This is now
  an error according to policy CMP0004.


CMake Error at external/gamekit/external/SDL2/CMakeLists.txt:2186 (add_library):
  Target "SDL2-static" links to item "-Wl,-O1,--sort-common,--as-needed
  -fstack-protector " which has leading or trailing whitespace.  This is now
  an error according to policy CMP0004.


CMake Error at external/gamekit/external/SDL2/CMakeLists.txt:2186 (add_library):
  Target "SDL2-static" links to item "-Wl,-O1,--sort-common,--as-needed
  -fstack-protector " which has leading or trailing whitespace.  This is now
  an error according to policy CMP0004.


CMake Error at external/gamekit/external/SDL2/CMakeLists.txt:2186 (add_library):
  Target "SDL2-static" links to item "-Wl,-O1,--sort-common,--as-needed
  -fstack-protector " which has leading or trailing whitespace.  This is now
  an error according to policy CMP0004.


-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.