diff -Nur a/utils/wxrc/Makefile.in b/utils/wxrc/Makefile.in
--- a/utils/wxrc/Makefile.in	2023-09-07 15:51:55.352827569 +0800
+++ b/utils/wxrc/Makefile.in	2023-09-07 16:05:11.820373156 +0800
@@ -114,7 +114,7 @@
 	rm -f config.cache config.log config.status bk-deps bk-make-pch Makefile
 
 @COND_USE_XML_1@wxrc$(EXEEXT): $(WXRC_OBJECTS)
-@COND_USE_XML_1@	$(CXX) -o $@ $(WXRC_OBJECTS)    -L$(LIBDIRNAME)  $(LDFLAGS)  $(WX_LDFLAGS) $(__WXLIB_XML_p) $(EXTRALIBS_XML) $(__WXLIB_BASE_p)  $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_p) $(__LIB_ZLIB_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS_FOR_BASE) $(LIBS)
+@COND_USE_XML_1@	$(CXX) -fPIE -o $@ $(WXRC_OBJECTS)    -L$(LIBDIRNAME)  $(LDFLAGS)  $(WX_LDFLAGS) $(__WXLIB_XML_p) $(EXTRALIBS_XML) $(__WXLIB_BASE_p)  $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_p) $(__LIB_ZLIB_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS_FOR_BASE) $(LIBS)
 
 @COND_USE_XML_1@install_wxrc: $(__wxrc___depname)
 @COND_USE_XML_1@	$(INSTALL_DIR) $(DESTDIR)$(bindir)
