diff options
author | Jan Beulich <jbeulich@suse.com> | 2025-04-04 10:20:14 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2025-04-04 10:20:14 +0200 |
commit | 25a0668a95ea5fac9393149205aa8f137da1c362 (patch) | |
tree | 5c342256c8aececa3ff4b60c334ba13d87c028bf /binutils/is-ranlib.c | |
parent | 2fb3d389d83f0ea1ac9a8d346884ffdb41e4fbb8 (diff) | |
download | binutils-25a0668a95ea5fac9393149205aa8f137da1c362.zip binutils-25a0668a95ea5fac9393149205aa8f137da1c362.tar.gz binutils-25a0668a95ea5fac9393149205aa8f137da1c362.tar.bz2 |
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.
Diffstat (limited to 'binutils/is-ranlib.c')
-rw-r--r-- | binutils/is-ranlib.c | 5 |
1 files changed, 2 insertions, 3 deletions
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" |