This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Wrong windres being used by linker makefile
- From: Nicholas Clifton <nickc at redhat dot com>
- To: me dot cygwin2014 at cgf dot cx
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Tue, 18 Mar 2014 14:46:51 +0000
- Subject: Wrong windres being used by linker makefile
- Authentication-results: sourceware.org; auth=none
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
built.
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 ?
Cheers
Nick