From 19a169ceb896f78205bc23b847938c58f14d1dda Mon Sep 17 00:00:00 2001 From: seyko Date: Fri, 20 May 2016 15:12:32 +0300 Subject: --whole-archive support A patch is implemented as suggested in tinycc-devel mail list. From: Reuben Thomas Date: Thu, 31 Jul 2014 16:52:53 +0100 Subject: [PATCH] Add --{no,}-whole-archive support I resurrected the patch supplied to the mailing list in 2009 Since --whole-archive is a useful flag to get tcc working with autotools, and of course in its own right, I suggest you have a look at the patch and see if it is acceptable. I cannot see any suggestion that it was actively rejected last time round, just no evidence that it was ever added. --- libtcc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libtcc.h') diff --git a/libtcc.h b/libtcc.h index 97b8587..8f39d19 100644 --- a/libtcc.h +++ b/libtcc.h @@ -53,6 +53,8 @@ LIBTCCAPI int tcc_add_file(TCCState *s, const char *filename, int filetype); #define TCC_FILETYPE_C 2 #define TCC_FILETYPE_ASM 3 #define TCC_FILETYPE_ASM_PP 4 +#define TCC_FILETYPE_AR_WHOLE_OFF 5 +#define TCC_FILETYPE_AR_WHOLE_ON 6 /* compile a string containing a C source. Return -1 if error. */ LIBTCCAPI int tcc_compile_string(TCCState *s, const char *buf); -- cgit v1.3.1