https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123326

--- Comment #17 from Steve Kargl <kargl at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #15)
> Is this now fixed?

As noted by Jakub, no.  Bootstrap on FreeBSD is still broken.
My work around is to edit Makefile after running configure
to add the missing libiconv.  I don't know if this is too
heavy-handed, but for the records here's the diff.

--- Makefile.orig       2026-01-05 07:36:49.926206000 -0800
+++ Makefile    2026-01-05 07:38:01.145032000 -0800
@@ -119,13 +119,15 @@

 # Linker flags to use on the host, for stage1 or when not
 # bootstrapping.
-STAGE1_LDFLAGS = -static-libstdc++ -static-libgcc
+STAGE1_LDFLAGS = -L/usr/local/lib -liconv -R/usr/local/lib \
+       -static-libstdc++ -static-libgcc

 # Libraries to use on the host, for stage1 or when not bootstrapping.
 STAGE1_LIBS = 

 # Linker flags to use for stage2 and later.
-POSTSTAGE1_LDFLAGS = -static-libstdc++ -static-libgcc
+POSTSTAGE1_LDFLAGS = -L/usr/local/lib -liconv -R/usr/local/lib \
+       -static-libstdc++ -static-libgcc

 # Libraries to use for stage2 and later.
 POSTSTAGE1_LIBS =

Reply via email to