mirror of https://github.com/rui314/chibicc
Made gcc crt search path more generic
This commit is contained in:
parent
90d1f7f199
commit
01366330d7
3
main.c
3
main.c
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue