From 2b20e2b1f4c8b7ddeb7ba2c289c350091779403a Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Fri, 19 Jul 2019 11:42:58 +0000 Subject: Use GNU backends for gcc-{ar,nm,ranlib} --- gcc/gcc-ar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/gcc-ar.c b/gcc/gcc-ar.c index e76d4525e0c..915759fdca8 100644 --- a/gcc/gcc-ar.c +++ b/gcc/gcc-ar.c @@ -190,12 +190,12 @@ main (int ac, char **av) #endif /* Find the wrapped binutils program. */ - exe_name = find_a_file (&target_path, PERSONALITY, X_OK); + exe_name = find_a_file (&target_path, "g" PERSONALITY, X_OK); if (!exe_name) { - const char *real_exe_name = PERSONALITY; + const char *real_exe_name = "g" PERSONALITY; #ifdef CROSS_DIRECTORY_STRUCTURE - real_exe_name = concat (target_machine, "-", PERSONALITY, NULL); + real_exe_name = concat (target_machine, "-", "g" PERSONALITY, NULL); #endif exe_name = find_a_file (&path, real_exe_name, X_OK); if (!exe_name)