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 <danglin@gcc.gnu.org>
gcc/ChangeLog:
* config/pa/pa64-hpux.h (MD_EXEC_PREFIX): Define to empty
string.
#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. */