diff --git a/tcc.h b/tcc.h index 1f0343e..48f9b21 100644 --- a/tcc.h +++ b/tcc.h @@ -222,7 +222,11 @@ #endif /* library to use with CONFIG_USE_LIBGCC instead of libtcc1.a */ -#define TCC_LIBGCC CONFIG_SYSROOT "/" CONFIG_LDDIR "/libgcc_s.so.1" +#ifndef CONFIG_MULTIARCHDIR +# define TCC_LIBGCC CONFIG_SYSROOT "/lib/libgcc_s.so.1" +#else +# define TCC_LIBGCC CONFIG_SYSROOT "/" CONFIG_LDDIR "/libgcc_s.so.1" +#endif /* -------------------------------------------- */ /* include the target specific definitions */