https://gcc.gnu.org/g:db3bb1099797354bb3a9ea4fd833380305304db1
commit r17-475-gdb3bb1099797354bb3a9ea4fd833380305304db1 Author: John David Anglin <[email protected]> Date: Tue May 12 15:58:26 2026 -0400 hppa64: Don't define MD_EXEC_PREFIX to "/usr/ccs/bin" on hpux In testing with GNU ld, I found defining MD_EXEC_PREFIX to "/usr/ccs/bin" sometimes causes HP ld to be selected when we want GNU ld. 2026-05-12 John David Anglin <[email protected]> gcc/ChangeLog: * config/pa/pa64-hpux.h (MD_EXEC_PREFIX): Define to empty string. Diff: --- gcc/config/pa/pa64-hpux.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/config/pa/pa64-hpux.h b/gcc/config/pa/pa64-hpux.h index 917df520a421..4673a639f447 100644 --- a/gcc/config/pa/pa64-hpux.h +++ b/gcc/config/pa/pa64-hpux.h @@ -104,11 +104,13 @@ along with GCC; see the file COPYING3. If not see #endif /* Under hpux11, the normal location of the `ld' and `as' programs is the - /usr/ccs/bin directory. */ + /usr/ccs/bin directory. However, we support both HP and GNU ld. + Adding this prefix to COMPILER_PATH can cause the wrong linker to be + selected. */ #ifndef CROSS_DIRECTORY_STRUCTURE #undef MD_EXEC_PREFIX -#define MD_EXEC_PREFIX "/usr/ccs/bin" +#define MD_EXEC_PREFIX "" #endif /* Default prefixes. */
