-
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: add a proper test to determine if -lc is required
Issue <#187> indicates that OpenBSD requires an explicit specification of -lc on the linker line when -Wl,--no-undefined is used. Unfortunately, unconditionally adding -lc is not possible, as that breaks MinGW builds. This commit adds a proper CMake test to check whether -lc is required when using -Wl,--no-undefined. If and only if it is required, -lc will be added to the linker flags. This now fixes <#233>.
- Loading branch information
Christian Seiler
committed
Feb 8, 2024
1 parent
2145b1e
commit 301e51b
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters