]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
hppa64: Don't define MD_EXEC_PREFIX to "/usr/ccs/bin" on hpux
authorJohn David Anglin <danglin@gcc.gnu.org>
Tue, 12 May 2026 19:58:26 +0000 (15:58 -0400)
committerJohn David Anglin <danglin@gcc.gnu.org>
Tue, 12 May 2026 19:58:26 +0000 (15:58 -0400)
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.

gcc/config/pa/pa64-hpux.h

index 917df520a4213dd6720e6e2794b8884c6d086860..4673a639f447aa889c90eb3571e596b1665a6592 100644 (file)
@@ -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.  */