Wrong windres being used by linker makefile

Nicholas Clifton nickc@redhat.com
Tue Mar 18 14:48:00 GMT 2014

Hi Chris,

   I am having trouble with your recent patch to the linker Makefile to
   use a host based windres.  It only works if the host has a version of
   windres installed - and one that matches the target that is being

   I think that we need to use the target windres, not the host.  As in:

diff --git a/ld/Makefile.am b/ld/Makefile.am
index e89a6c1..795663f 100644
--- a/ld/Makefile.am
+++ b/ld/Makefile.am
@@ -1927,7 +1927,7 @@ eshlelf64_nbsd.c: 
$(srcdir)/emulparams/shlelf64_nbsd.sh \

  # Rule to create a manifest file for Cygwin and Mingw.
  default-manifest.o: $(srcdir)/emultempl/default-manifest.rc
-       ${WINDRES} -o $@ $<
+       ${WINDRES_FOR_TARGET} -o $@ $<

  # We need this for automake to use YLWRAP.
  EXTRA_ld_new_SOURCES = deffilep.y ldlex.l

   Does this work for you ?


More information about the Binutils mailing list