diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2013-09-07 19:26:36 +0200 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2013-09-07 19:28:06 +0200 |
| commit | 9382d6f1a0e2d0104a82ed805207d9e742c6b068 (patch) | |
| tree | 180aad19cd1d596e57e9bd2b1b0a052ae50e9ab5 /tcc.h | |
| parent | 73faaea227a53e365dd75f1dba7a5071c7b5e541 (diff) | |
| download | tinycc-9382d6f1a0e2d0104a82ed805207d9e742c6b068.tar.gz tinycc-9382d6f1a0e2d0104a82ed805207d9e742c6b068.tar.bz2 | |
Fix lib, include, crt and libgcc search paths
Diffstat (limited to 'tcc.h')
| -rw-r--r-- | tcc.h | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -168,10 +168,13 @@ #ifndef CONFIG_LDDIR # define CONFIG_LDDIR "lib" #endif +#ifndef CONFIG_MULTIARCHDIR +#define CONFIG_MULTIARCHDIR +#endif /* path to find crt1.o, crti.o and crtn.o */ #ifndef CONFIG_TCC_CRTPREFIX -# define CONFIG_TCC_CRTPREFIX CONFIG_SYSROOT "/usr/" CONFIG_LDDIR +# define CONFIG_TCC_CRTPREFIX CONFIG_SYSROOT "/usr/" CONFIG_LDDIR "/" CONFIG_MULTIARCHDIR #endif /* Below: {B} is substituted by CONFIG_TCCDIR (rsp. -B option) */ @@ -180,16 +183,11 @@ #ifndef CONFIG_TCC_SYSINCLUDEPATHS # ifdef TCC_TARGET_PE # define CONFIG_TCC_SYSINCLUDEPATHS "{B}/include;{B}/include/winapi" -# elif defined CONFIG_MULTIARCHDIR +# else # define CONFIG_TCC_SYSINCLUDEPATHS \ - CONFIG_SYSROOT "/usr/local/include" \ ":" CONFIG_SYSROOT "/usr/local/include/" CONFIG_MULTIARCHDIR \ - ":" CONFIG_SYSROOT "/usr/include" \ + ":" CONFIG_SYSROOT "/usr/local/include" \ ":" CONFIG_SYSROOT "/usr/include/" CONFIG_MULTIARCHDIR \ - ":" "{B}/include" -# else -# define CONFIG_TCC_SYSINCLUDEPATHS \ - CONFIG_SYSROOT "/usr/local/include" \ ":" CONFIG_SYSROOT "/usr/include" \ ":" "{B}/include" # endif @@ -201,8 +199,11 @@ # define CONFIG_TCC_LIBPATHS "{B}/lib;{B}" # else # define CONFIG_TCC_LIBPATHS \ - CONFIG_SYSROOT "/usr/" CONFIG_LDDIR \ + CONFIG_SYSROOT "/usr/" CONFIG_LDDIR "/" CONFIG_MULTIARCHDIR \ + ":" CONFIG_SYSROOT "/usr/" CONFIG_LDDIR \ + ":" CONFIG_SYSROOT "/" CONFIG_LDDIR "/" CONFIG_MULTIARCHDIR \ ":" CONFIG_SYSROOT "/" CONFIG_LDDIR \ + ":" CONFIG_SYSROOT "/usr/local/" CONFIG_LDDIR "/" CONFIG_MULTIARCHDIR \ ":" CONFIG_SYSROOT "/usr/local/" CONFIG_LDDIR # endif #endif @@ -235,7 +236,7 @@ #endif /* library to use with CONFIG_USE_LIBGCC instead of libtcc1.a */ -#define TCC_LIBGCC CONFIG_SYSROOT "/" CONFIG_LDDIR "/libgcc_s.so.1" +#define TCC_LIBGCC CONFIG_SYSROOT "/" CONFIG_LDDIR "/" CONFIG_MULTIARCHDIR "/libgcc_s.so.1" /* -------------------------------------------- */ /* include the target specific definitions */ |
