tcc.h: Extend search path for include, lib and crt.
This allows more tcc cross compiler to work out of the box without a buildsystem-specific config-extra.mak
This commit is contained in:
parent
9ac128c0bd
commit
fa9c31c3db
1 changed files with 7 additions and 1 deletions
8
tcc.h
8
tcc.h
|
@ -258,7 +258,9 @@ extern long double strtold (const char *__nptr, char **__endptr);
|
||||||
|
|
||||||
/* path to find crt1.o, crti.o and crtn.o */
|
/* path to find crt1.o, crti.o and crtn.o */
|
||||||
#ifndef CONFIG_TCC_CRTPREFIX
|
#ifndef CONFIG_TCC_CRTPREFIX
|
||||||
# define CONFIG_TCC_CRTPREFIX USE_TRIPLET(CONFIG_SYSROOT "/usr/" CONFIG_LDDIR)
|
# define CONFIG_TCC_CRTPREFIX \
|
||||||
|
ALSO_TRIPLET(CONFIG_SYSROOT "/usr/" CONFIG_LDDIR) \
|
||||||
|
":" USE_TRIPLET(CONFIG_SYSROOT "/usr") "/lib"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_USR_INCLUDE
|
#ifndef CONFIG_USR_INCLUDE
|
||||||
|
@ -275,6 +277,8 @@ extern long double strtold (const char *__nptr, char **__endptr);
|
||||||
# define CONFIG_TCC_SYSINCLUDEPATHS \
|
# define CONFIG_TCC_SYSINCLUDEPATHS \
|
||||||
"{B}/include" \
|
"{B}/include" \
|
||||||
":" ALSO_TRIPLET(CONFIG_SYSROOT "/usr/local/include") \
|
":" ALSO_TRIPLET(CONFIG_SYSROOT "/usr/local/include") \
|
||||||
|
":" USE_TRIPLET(CONFIG_SYSROOT "/usr") "/include" \
|
||||||
|
":" USE_TRIPLET(CONFIG_SYSROOT "/usr/local") "/include" \
|
||||||
":" ALSO_TRIPLET(CONFIG_SYSROOT CONFIG_USR_INCLUDE)
|
":" ALSO_TRIPLET(CONFIG_SYSROOT CONFIG_USR_INCLUDE)
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -286,6 +290,8 @@ extern long double strtold (const char *__nptr, char **__endptr);
|
||||||
# else
|
# else
|
||||||
# define CONFIG_TCC_LIBPATHS \
|
# define CONFIG_TCC_LIBPATHS \
|
||||||
ALSO_TRIPLET(CONFIG_SYSROOT "/usr/" CONFIG_LDDIR) \
|
ALSO_TRIPLET(CONFIG_SYSROOT "/usr/" CONFIG_LDDIR) \
|
||||||
|
":" USE_TRIPLET(CONFIG_SYSROOT "/usr") "/lib" \
|
||||||
|
":" USE_TRIPLET(CONFIG_SYSROOT "/usr/local") "/lib" \
|
||||||
":" ALSO_TRIPLET(CONFIG_SYSROOT "/" CONFIG_LDDIR) \
|
":" ALSO_TRIPLET(CONFIG_SYSROOT "/" CONFIG_LDDIR) \
|
||||||
":" ALSO_TRIPLET(CONFIG_SYSROOT "/usr/local/" CONFIG_LDDIR)
|
":" ALSO_TRIPLET(CONFIG_SYSROOT "/usr/local/" CONFIG_LDDIR)
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Reference in a new issue