https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113891
--- Comment #4 from Steffen ---
I'm not sure how to get this done.
I tried it with -Wl,--no-as-needed, which aborts as well and
-Wl,--whole-archive but that does not compile with undefined reference errors
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113891
--- Comment #2 from Steffen ---
The program was compiled with g++13 -pthread -static main.cc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113891
--- Comment #1 from Steffen ---
Created attachment 57401
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57401&action=edit
main.ii
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113891
Bug ID: 113891
Summary: On FreeBSD, a statically linked program which runs a
std::thread aborts
Product: gcc
Version: 13.2.0
Status: UNCONFIRMED
Severity: norm