diff options
| author | grischka <grischka> | 2016-10-01 21:06:33 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2016-10-01 21:06:33 +0200 |
| commit | 0a624782dfc8fee6f0600066b135d3b20e4274f4 (patch) | |
| tree | e47f5f74ee3570445a7bc44f11bfb0ed98f4f427 /tccelf.c | |
| parent | 6d2be31b93bec581391ea4476482693ee7452f59 (diff) | |
| download | tinycc-0a624782dfc8fee6f0600066b135d3b20e4274f4.tar.gz tinycc-0a624782dfc8fee6f0600066b135d3b20e4274f4.tar.bz2 | |
build: revert Makefiles to 0.9.26 state (mostly)
Except
- that libtcc1.a is now installed in subdirs i386/ etc.
- the support for arm and arm64
- some of the "Darwin" fixes
- tests are mosly unchanged
Also
- removed the "legacy links for cross compilers" (was total mess)
- removed "out-of-tree" build support (was broken anyway)
Diffstat (limited to 'tccelf.c')
| -rw-r--r-- | tccelf.c | 19 |
1 files changed, 1 insertions, 18 deletions
@@ -1555,24 +1555,7 @@ static void add_init_array_defines(TCCState *s1, const char *section_name) static int tcc_add_support(TCCState *s1, const char *filename) { char buf[1024]; - snprintf(buf, sizeof(buf), "%s/%s/%s", s1->tcc_lib_path, - /* an cpu specific path inside tcc_lib_path, mainly for keeping libtcc1.a */ - #ifdef TCC_TARGET_I386 - "i386" - #endif - #ifdef TCC_TARGET_X86_64 - "x86-64" - #endif - #ifdef TCC_TARGET_ARM - "arm" - #endif - #ifdef TCC_TARGET_ARM64 - "arm64" - #endif - #ifdef TCC_TARGET_C67 - "C67" - #endif - ,filename); + snprintf(buf, sizeof(buf), "%s/"TCC_ARCH_DIR"%s", s1->tcc_lib_path, filename); return tcc_add_file(s1, buf); } |
