#57 windres preprocessor bug

OTHER
closed
binutils (105)
out-of-date
Unknown
2013-01-25
2001-07-22
Anonymous
No

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.

‰

Discussion

  • Luke Dunstan

    Luke Dunstan - 2002-05-22

    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?

     
  • Earnie Boyd

    Earnie Boyd - 2002-08-05
    • milestone: 102880 -->
    • assigned_to: nobody --> dannysmith
    • status: open --> closed-out-of-date
     
  • Earnie Boyd

    Earnie Boyd - 2013-01-25
    • Description has changed:

    Diff:

    • status: closed-out-of-date --> closed
    • resolution: --> out-of-date
    • category: --> Unknown
    • milestone: --> OTHER
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks