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. --- tcc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index 7b4481e..78d0b2d 100644 --- a/tcc.h +++ b/tcc.h @@ -692,6 +692,7 @@ struct TCCState { int rdynamic; /* if true, all symbols are exported */ int symbolic; /* if true, resolve symbols in the current module first */ int alacarte_link; /* if true, only link in referenced objects from archive */ + int whole_archive; /* if true, link in a whole *.a even when alacarte_link */ char *tcc_lib_path; /* CONFIG_TCCDIR or -B option */ char *soname; /* as specified on the command line (-soname) */ -- cgit v1.3.1