Made gcc crt search path more generic

This commit is contained in:
Stardust 2022-09-27 08:49:19 +00:00 committed by GitHub
parent 90d1f7f199
commit 01366330d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

3
main.c
View File

@ -598,8 +598,7 @@ static char *find_libpath(void) {
static char *find_gcc_libpath(void) {
char *paths[] = {
"/usr/lib/gcc/x86_64-linux-gnu/*/crtbegin.o",
"/usr/lib/gcc/x86_64-pc-linux-gnu/*/crtbegin.o", // For Gentoo
"/usr/lib/gcc/x86_64*-linux-gnu/*/crtbegin.o",
"/usr/lib/gcc/x86_64-redhat-linux/*/crtbegin.o", // For Fedora
};