Description: Ignore failure on open-lib when building libcc-named wrapper libraries
 Use "-for" for the build-libcc-named recipe so that a failure to dlopen the
 libcc wrapper libraries at build time does not abort the whole build; gforth
 can regenerate these wrappers at run time.  Fixes FTBFS with newer libtool.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: other, https://salsa.debian.org/roam/gforth (Debian libcc-err-ignore.patch)
Bug-Debian: https://bugs.debian.org/1067376
Forwarded: not-needed
Last-Update: 2026-09-02

--- gforth-0.7.3+dfsg.orig/Makefile.in
+++ gforth-0.7.3+dfsg/Makefile.in
@@ -652,7 +652,7 @@ uninstall:	FORCE
 
 build-libcc-named: $(LIBCC_BUILD_SRC) $(FORTH_GEN) $(GEN) FORCE
 		$(RMTREE) lib/gforth/$(VERSION)/libcc-named/
-		for i in $(LIBCC_BUILD_SRC); do ./gforth -e "s\" `pwd`/lib/gforth/$(VERSION)/libcc-named/\" libcc-named-dir-v 2! libcc-path clear-path libcc-named-dir libcc-path also-path :noname 2drop s\" $(libccdir)\" ; is replace-rpath" $(srcdir)/$$i -e bye; done
+		-for i in $(LIBCC_BUILD_SRC); do ./gforth -e "s\" `pwd`/lib/gforth/$(VERSION)/libcc-named/\" libcc-named-dir-v 2! libcc-path clear-path libcc-named-dir libcc-path also-path :noname 2drop s\" $(libccdir)\" ; is replace-rpath" $(srcdir)/$$i -e bye; done
 
 check:		gforths	gforth.fi 
 		$(MAKE) checkone check-nofast ENGINE="./gforth --no-dynamic" >/dev/null 2>&1
