From 762a43877b6edc4a586b2b41f7474eee0adcdcec Mon Sep 17 00:00:00 2001 From: grischka Date: Thu, 14 Feb 2013 17:43:24 +0100 Subject: configure: pass CONFIG_xxxDIR/PATH options via commandline - except for CONFIG_SYSROOT and CONFIG_TCCDIR Strictly neccessary it is only for CONFIG_MULTIARCHDIR because otherwise if it's in config.h it is impossible to leave it undefined. But it is also nicer not to use these definitions for cross-compilers. - Also: lib/Makefile : include ../Makefile for CFLAGS lib/libtcc1.c : fix an issue compiling tcc with tcc on x64 --- lib/libtcc1.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/libtcc1.c') diff --git a/lib/libtcc1.c b/lib/libtcc1.c index 946c6c8..6964cd1 100644 --- a/lib/libtcc1.c +++ b/lib/libtcc1.c @@ -609,8 +609,11 @@ unsigned long long __fixunsxfdi (long double a1) /* helper functions for stdarg.h */ -#include #include +#ifndef __TINYC__ +/* gives "incompatible types for redefinition of __va_arg" below */ +#include +#endif enum __va_arg_type { __va_gen_reg, __va_float_reg, __va_stack @@ -665,7 +668,9 @@ void *__va_arg(struct __va_list_struct *ap, return ap->overflow_arg_area - size; default: +#ifndef __TINYC__ fprintf(stderr, "unknown ABI type for __va_arg\n"); +#endif abort(); } } -- cgit v1.3.1