It seems libgcc_s.so.1 is systematically on /lib/ (whether /lib/$triplet for multiarch systems or just /lib for other systems).
Unified · Split
| @@ -222,7 +222,11 @@ · 221 unmodified lines | ||
| 222 | 222 | #endif |
| 223 | 223 | |
| 224 | 224 | /* library to use with CONFIG_USE_LIBGCC instead of libtcc1.a */ |
| 225 | −#define TCC_LIBGCC CONFIG_SYSROOT "/" CONFIG_LDDIR "/libgcc_s.so.1" | |
| 225 | +#ifndef CONFIG_MULTIARCHDIR | |
| 226 | +# define TCC_LIBGCC CONFIG_SYSROOT "/lib/libgcc_s.so.1" | |
| 227 | +#else | |
| 228 | +# define TCC_LIBGCC CONFIG_SYSROOT "/" CONFIG_LDDIR "/libgcc_s.so.1" | |
| 229 | +#endif | |
| 226 | 230 | |
| 227 | 231 | /* -------------------------------------------- */ |
| 228 | 232 | /* include the target specific definitions */ |