mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-15 05:20:06 +08:00
x86_64: finish biarch path fixup
This commit is contained in:
parent
44e84bb22a
commit
77e4679aec
2
libtcc.c
2
libtcc.c
@ -962,7 +962,7 @@ LIBTCCAPI TCCState *tcc_new(void)
|
||||
#ifndef TCC_TARGET_PE
|
||||
/* default library paths */
|
||||
tcc_add_library_path(s, CONFIG_TCC_CRT_PREFIX);
|
||||
tcc_add_library_path(s, CONFIG_TCC_LDDIR);
|
||||
tcc_add_library_path(s, CONFIG_SYSROOT CONFIG_TCC_LDDIR);
|
||||
tcc_add_library_path(s, CONFIG_SYSROOT "/usr/local"CONFIG_TCC_LDDIR);
|
||||
#endif
|
||||
|
||||
|
2
tccelf.c
2
tccelf.c
@ -1251,7 +1251,7 @@ ST_FUNC void tcc_add_runtime(TCCState *s1)
|
||||
if (!s1->nostdlib) {
|
||||
#ifdef CONFIG_USE_LIBGCC
|
||||
tcc_add_library(s1, "c");
|
||||
tcc_add_file(s1, CONFIG_TCC_LDDIR"/libgcc_s.so.1");
|
||||
tcc_add_file(s1, CONFIG_SYSROOT CONFIG_TCC_LDDIR"/libgcc_s.so.1");
|
||||
#else
|
||||
tcc_add_library(s1, "c");
|
||||
#ifndef WITHOUT_LIBTCC
|
||||
|
Loading…
Reference in New Issue
Block a user