Mail Archives: djgpp/2000/01/18/15:40:25
>> > I don't think so.  I suspect that it's the result of adding this to
>> > specs:  -imacros %s../include/sys/version.h.
>> > Please try editing this out of specs and see if the problem goes away.
>> 
>> Didn't help.
>
>Are you sure you edited the right specs file?  If -imacros is gone,
>and the dependency is still there, it probably means that this is
>somehow built into GCC's code, but I don't think this is true.
I repeated the try now here at work. And that worked!!
Better check out my setup at home...
>> I could always add an extra sed command to remove
>> "$(DJDIR)/lib/../include/sys/version.h"
>
>That's what I would suggest also.
I  got another idea; force gcc (and the cpp stage) to use a 
specific 'specs' file. I tried this hack:
  $(TMPDIR)/specs::
          echo "*cpp: %(cpp_cpu) %{posix:-D_POSIX_SOURCE} -remap" > $@
  depend: $(TMPDIR)/specs
        @copy Makefile.dj Makefile.bak
        sed -e "/^# DO NOT DELETE THIS LINE/,$$d" < Makefile.bak > Makefile.dj
        echo "# DO NOT DELETE THIS LINE" >> Makefile.dj
        $(CC) -specs=$(TMPDIR)/specs -MM $(CFLAGS) $(SRC)   >> Makefile.dj
Which works!
Gisle V.
- Raw text -