binutils 05-07-2001
When windres call default preprocessor thru the
$(SHELL) it run it as:
sh /c gcc -E -xc -DRC_INVOKED file.rc
but it incorrect and must be
sh /c "gcc -E -xc -DRC_INVOKED file.rc"
Example
makefile:
WINDRES=windres
.PHONY: $(SUBDIRS)
$(SUBDIRS):
(cd $@ && $(MAKE) WINDRES="$(WINDRES)" -f
makefile.sub;)
makefile.sub:
$(SYNNAME).res.o: $(SYNNAME).rc
$(WINDRES) -i $< -o $@
I get error from sh - Bad -c option. After changing
makefile:
WINDRES=windres --preprocessor \&quot;\\\&quot;gcc -E -xc -
DRC_INVOKED\\\&quot;\&quot;
all work fine.
&#137;
Logged In: YES
user_id=30442
Since windres normally uses "popen" to execute the gcc
preprocessor directly, I don't know where "sh" comes from.
Does anyone else have any ideas, or has this been fixed in
windres at some point?
Diff: