Skip to content

Instantly share code, notes, and snippets.

@ongun-kanat
Last active January 27, 2021 17:33
Show Gist options
  • Save ongun-kanat/702d4cfd8fd0d6634e2f62c54c0fb9b5 to your computer and use it in GitHub Desktop.
Save ongun-kanat/702d4cfd8fd0d6634e2f62c54c0fb9b5 to your computer and use it in GitHub Desktop.
Linking libstdc++ statically in MinGW-w64
target_link_options(mylib PRIVATE -static-libstdc++ -static-libgcc -Wl,-Bstatic,--whole-archive -lwinpthread -Wl,--no-whole-archive,-Bdynamic)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment