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

Add -lgcc_s to Cygwin link libraries #108

Merged
merged 1 commit into from
Nov 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
Next version
- GPR#108: Add -lgcc_s to Cygwin's link libraries, upstreaming a patch from the
Cygwin flexdll package (David Allsopp)

Version 0.42
- GPR#106: Support -l: syntax, to allow static linking of specific libraries (David Allsopp)
- GPR#103: Delete objects from C files compiled by flexlink (David Allsopp, report by Xavier Leroy)
- GPR#85: Split multiple arguments passed with a single -Wl (David Allsopp)
Expand Down
2 changes: 1 addition & 1 deletion reloc.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,7 @@ let setup_toolchain () =
Filename.dirname (get_output1 ~use_bash:true "gcc -print-libgcc-file-name");
];
default_libs := ["-lkernel32"; "-luser32"; "-ladvapi32";
"-lshell32"; "-lcygwin"; "-lgcc"]
"-lshell32"; "-lcygwin"; "-lgcc_s"; "-lgcc"]
| `MSVC | `MSVC64 ->
search_path := !dirs @
parse_libpath (try Sys.getenv "LIB" with Not_found -> "");
Expand Down