From: <no...@so...> - 2002-08-05 15:36:21
|
Bugs item #443500, was opened at 2001-07-22 05:08 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=443500&group_id=2435 Category: binutils >Group: None >Status: Closed >Resolution: Out of Date Priority: 5 Submitted By: Nobody/Anonymous (nobody) >Assigned to: Danny Smith (dannysmith) Summary: windres preprocessor bug Initial Comment: 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 \\\gcc -E -xc - DRC_INVOKED\\\ all work fine. ‰ ---------------------------------------------------------------------- Comment By: Luke Dunstan (infidel) Date: 2002-05-22 09:37 Message: 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? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=443500&group_id=2435 |