head 1.1; access; symbols; locks; strict; comment @# @; 1.1 date 2026.08.10.21.41.34; author wiz; state Exp; branches; next ; commitid 9JHloFc9ZlojD8RG; desc @@ 1.1 log @lang/gcc16: import gcc16-16.1.0 The GNU Compiler Collection (GCC) includes front ends for C, C++, Objective-C, Fortran, and Go. @ text @$NetBSD: patch-gcc_Makefile.in,v 1.1 2025/07/14 17:44:53 wiz Exp $ Ensure libgcc from this GCC is found before others. Note that there must not be a whitespace between $(LINKER_RPATH_FLAG) and the path. Otherwise the flag may be misinterpreted by the linker (e.g. Apple ld). --- gcc/Makefile.in.orig 2026-04-30 08:33:20.000000000 +0000 +++ gcc/Makefile.in @@@@ -2658,6 +2658,7 @@@@ DRIVER_DEFINES = \ # Language-independent files. DRIVER_DEFINES = \ + -DLINK_LIBGCC_SPEC="\"%D $(LINKER_RPATH_FLAG)$(prefix)/@@GCC_TARGET_MACHINE@@/lib/%M $(LINKER_RPATH_FLAG)$(libdir)/%M \"" \ -DSTANDARD_STARTFILE_PREFIX=\"$(unlibsubdir)/\" \ -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc/\" \ -DSTANDARD_LIBEXEC_PREFIX=\"$(libexecdir)/gcc/\" \ @