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 - Can't cross-compile from linux with MinGW-w64
Summary: Can't cross-compile from linux with MinGW-w64
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: 2.0.10
Hardware: x86_64 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-13 11:39 UTC by Unarelith
Modified: 2020-07-13 11:39 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.