ports/devel/freebsd-gcc14/files/patch-freebsd-libdir
John Baldwin 97d1458569 devel/freebsd-gcc14: External FreeBSD toolchain based on GCC 14.
This port provides external GCC toolchains for GCC 14.1.0 for the
aarch64, amd64, armv7, i386, powerpc, powerpc64, and riscv64
platforms.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D46000
2024-07-29 16:41:18 -04:00

39 lines
1.3 KiB
Text

--- gcc/config/freebsd.h.orig 2024-05-07 06:51:37 UTC
+++ gcc/config/freebsd.h
@@ -44,6 +44,9 @@ along with GCC; see the file COPYING3. If not see
#undef LIB_SPEC
#define LIB_SPEC FBSD_LIB_SPEC
+#undef STARTFILE_PREFIX_SPEC
+#define STARTFILE_PREFIX_SPEC "/usr/lib/ "
+
#if defined(HAVE_LD_EH_FRAME_HDR)
#define LINK_EH_SPEC "%{!static|static-pie:--eh-frame-hdr} "
#endif
--- gcc/gcc.cc.orig 2024-05-07 06:51:37 UTC
+++ gcc/gcc.cc
@@ -4839,10 +4839,12 @@ process_command (unsigned int decoded_options_count,
}
set_std_prefix (gcc_exec_prefix, len);
+#if 0
add_prefix (&exec_prefixes, gcc_libexec_prefix, "GCC",
PREFIX_PRIORITY_LAST, 0, 0);
add_prefix (&startfile_prefixes, gcc_exec_prefix, "GCC",
PREFIX_PRIORITY_LAST, 0, 0);
+#endif
}
/* COMPILER_PATH and LIBRARY_PATH have values
@@ -5496,9 +5498,11 @@ process_command (unsigned int decoded_options_count,
add_prefix (&exec_prefixes,
concat (tooldir_prefix, "bin", dir_separator_str, NULL),
"BINUTILS", PREFIX_PRIORITY_LAST, 0, 0);
+#if 0
add_prefix (&startfile_prefixes,
concat (tooldir_prefix, "lib", dir_separator_str, NULL),
"BINUTILS", PREFIX_PRIORITY_LAST, 0, 1);
+#endif
free (tooldir_prefix);
#if defined(TARGET_SYSTEM_ROOT_RELOCATABLE) && !defined(VMS)