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-doc.texi | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tcc-doc.texi') diff --git a/tcc-doc.texi b/tcc-doc.texi index 4e26489..38b1f74 100644 --- a/tcc-doc.texi +++ b/tcc-doc.texi @@ -317,6 +317,14 @@ Generate an object file combining all input files. @item -Wl,-rpath=path Put custom seatch path for dynamic libraries into executable. +@item -Wl,--whole-archive +Add a whole archive, not just the symbols of the archive that would +satisfy undefined symbols in the program. + +@item -Wl,--no-whole-archive +Turn off the effect of the --whole-archive option for subsequent archive +files. + @item -Wl,--oformat=fmt Use @var{fmt} as output format. The supported output formats are: @table @code -- cgit v1.3.1