Unified · Split
| @@ -962,7 +962,7 @@ LIBTCCAPI TCCState *tcc_new(void) · 961 unmodified lines | ||
| 962 | 962 | #ifndef TCC_TARGET_PE |
| 963 | 963 | /* default library paths */ |
| 964 | 964 | tcc_add_library_path(s, CONFIG_TCC_CRT_PREFIX); |
| 965 | − tcc_add_library_path(s, CONFIG_TCC_LDDIR); | |
| 965 | + tcc_add_library_path(s, CONFIG_SYSROOT CONFIG_TCC_LDDIR); | |
| 966 | 966 | tcc_add_library_path(s, CONFIG_SYSROOT "/usr/local"CONFIG_TCC_LDDIR); |
| 967 | 967 | #endif |
| 968 | 968 | |
| @@ -1251,7 +1251,7 @@ ST_FUNC void tcc_add_runtime(TCCState *s1) · 1250 unmodified lines | ||
| 1251 | 1251 | if (!s1->nostdlib) { |
| 1252 | 1252 | #ifdef CONFIG_USE_LIBGCC |
| 1253 | 1253 | tcc_add_library(s1, "c"); |
| 1254 | − tcc_add_file(s1, CONFIG_TCC_LDDIR"/libgcc_s.so.1"); | |
| 1254 | + tcc_add_file(s1, CONFIG_SYSROOT CONFIG_TCC_LDDIR"/libgcc_s.so.1"); | |
| 1255 | 1255 | #else |
| 1256 | 1256 | tcc_add_library(s1, "c"); |
| 1257 | 1257 | #ifndef WITHOUT_LIBTCC |