Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When compiling TIC-80 with GCC Mingw-w64 it (mingw64) adds additional DLL dependencies #1240

Closed
KatPurpy opened this issue Nov 14, 2020 · 1 comment
Assignees

Comments

@KatPurpy
Copy link

The resulting TIC-80 executables (i compile tic80, tic80-sokol, utils and players for test) depends on these dlls:

libwinpthread-1.dll
libstdc++-6.dll
libgcc_s_seh-1.dll

Solution? Statically link standard C library into executables.

What i did to solve my problem is adding this line in the beginning of the cmake line
set(CMAKE_EXE_LINKER_FLAGS "-static")

Please add this line in the cmake file or something similar so it would add C library statically no matter what.

@nesbox nesbox self-assigned this Nov 15, 2020
nesbox added a commit that referenced this issue Nov 15, 2020
@nesbox
Copy link
Owner

nesbox commented Nov 15, 2020

Fixed here c3b5d8a

@nesbox nesbox closed this as completed Nov 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants