the bug fixed by adding --use-temp-file
Dreli:~/geanyTemp/geany/src $ git diff Makefile.am diff --git a/src/Makefile.am b/src/Makefile.am index 86c3b7ff..bd8ef8cf 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -147,7 +147,7 @@ geany_LDADD += geany_private.res WINDRES = $(host_alias)-windres
geany_private.res: $(top_srcdir)/geany_private.rc - $(WINDRES) -i $(top_srcdir)/geany_private.rc --input-format=rc -o $@ -O coff + $(WINDRES) -i $(top_srcdir)/geany_private.rc --input-format=rc -o $@ -O coff --use-temp-file
libgeany_la_SOURCES += win32.c win32.h libgeany_la_LIBADD += -lole32 -lwsock32 -lcomdlg32
[winres_use_temp_file.patch.txt](https://github.com/geany/geany/files/1977414/winres_use_temp_file.patch.txt)