From 25a0668a95ea5fac9393149205aa8f137da1c362 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 4 Apr 2025 10:20:14 +0200 Subject: binutils: properly split ar and ranlib By not linking the exact same object file twice, in particular ranlib can benefit quite a bit from the compiler eliminating dead code. --- binutils/is-ranlib.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'binutils/is-ranlib.c') diff --git a/binutils/is-ranlib.c b/binutils/is-ranlib.c index 4a04adb..47296eb 100644 --- a/binutils/is-ranlib.c +++ b/binutils/is-ranlib.c @@ -17,6 +17,5 @@ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ -/* Linked with ar.o to flag that this program is 'ranlib' (not 'ar'). */ - -int is_ranlib = 1; +#define is_ranlib 1 +#include "ar.c" -- cgit v1.1