diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2013-02-13 20:14:13 +0100 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2013-02-13 20:14:13 +0100 |
| commit | f9ac2013779370e0d010922ae3684e601e53aa1d (patch) | |
| tree | d2389c603a06c0373d8c4065737fba5bd89c489c /tcc.h | |
| parent | af4b27f0fd7d1ee247bbd1a330dfbff9ed16bcae (diff) | |
| download | tinycc-f9ac2013779370e0d010922ae3684e601e53aa1d.tar.gz tinycc-f9ac2013779370e0d010922ae3684e601e53aa1d.tar.bz2 | |
Detect multiarch triplet and lddir from ldd output
Diffstat (limited to 'tcc.h')
| -rw-r--r-- | tcc.h | 36 |
1 files changed, 0 insertions, 36 deletions
@@ -156,42 +156,6 @@ # define CONFIG_SYSROOT "" #endif -#if defined(CONFIG_TCC_MULTIARCH) && defined(TCC_IS_NATIVE) -/* Define architecture */ -# if defined(TCC_TARGET_I386) -# define TRIPLET_ARCH "i386" -# elif defined(TCC_TARGET_X86_64) -# define TRIPLET_ARCH "x86_64" -# elif defined(TCC_TARGET_ARM) -# define TRIPLET_ARCH "arm" -# else -# define TRIPLET_ARCH "unknown" -# endif -/* Define OS */ -# if defined (__linux__) -# define TRIPLET_OS "linux" -# elif defined (__FreeBSD__) || defined (__FreeBSD_kernel__) -# define TRIPLET_OS "kfreebsd" -# elif !defined (__GNU__) -# define TRIPLET_OS "unknown" -# endif -/* Define calling convention and ABI */ -# define TRIPLET_ABI "gnu" -# ifdef __GNU__ -# define CONFIG_MULTIARCHDIR TRIPLET_ARCH "-" TRIPLET_ABI -# else -# define CONFIG_MULTIARCHDIR TRIPLET_ARCH "-" TRIPLET_OS "-" TRIPLET_ABI -# endif -#endif - -#ifndef CONFIG_LDDIR -# ifdef CONFIG_MULTIARCHDIR -# define CONFIG_LDDIR "lib/" CONFIG_MULTIARCHDIR -# else -# define CONFIG_LDDIR "lib" -# endif -#endif - /* path to find crt1.o, crti.o and crtn.o */ #ifndef CONFIG_TCC_CRTPREFIX # define CONFIG_TCC_CRTPREFIX CONFIG_SYSROOT "/usr/" CONFIG_LDDIR |
