From 569255e6c40f45a0d78b409c05353d4c1de6ca43 Mon Sep 17 00:00:00 2001 From: grischka Date: Thu, 23 Feb 2017 08:41:57 +0100 Subject: cross-compilers: allow individual configuration since configure supports only native configuration a file 'cross-tcc.mak' needs to be created manually. It is included in the Makefile if present. # ---------------------------------------------------- # Example config-cross.mak: # # windows -> i386-linux cross-compiler # (it expects the linux files in /i386-linux) ROOT-i386 = {B}/i386-linux CRT-i386 = $(ROOT-i386)/usr/lib LIB-i386 = $(ROOT-i386)/lib:$(ROOT-i386)/usr/lib INC-i386 = {B}/lib/include:$(ROOT-i386)/usr/include DEF-i386 += -D__linux__ # ---------------------------------------------------- Also: - use libtcc1-.a instead of directories - add dummy arm assembler - remove include dependencies from armeabi.c/lib-arm64.c - tccelf/ld_add_file: add SYSROOT (when defined) to absolute filenames coming from ld-scripts --- tcc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tcc.c') diff --git a/tcc.c b/tcc.c index a504661..2cca7a8 100644 --- a/tcc.c +++ b/tcc.c @@ -182,6 +182,7 @@ static void print_search_dirs(TCCState *s) print_dirs("libraries", s->library_paths, s->nb_library_paths); #ifndef TCC_TARGET_PE print_dirs("crt", s->crt_paths, s->nb_crt_paths); + printf("libtcc1:\n %s/"TCC_LIBTCC1"\n", s->tcc_lib_path); printf("elfinterp:\n %s\n", DEFAULT_ELFINTERP(s)); #endif } -- cgit v1.3.1