X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Sat, 9 Feb 2002 12:24:35 +0100 (MET) From: Gisle Vanem To: djgpp AT delorie DOT com Subject: gcc 3.03 dependency output Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com I generate dependency output for makefiles using this command: MAKEFILE = Makefile.dj MM_SPECS = $(TMPDIR)/specs depend: @copy $(MAKEFILE) Makefile.bak @echo "*cpp: %(cpp_cpu) %{posix:-D_POSIX_SOURCE} -remap" > $(MM_SPECS) sed -e "/^# DO NOT DELETE THIS LINE/,$$d" < Makefile.bak > $(MAKEFILE) echo "# DO NOT DELETE THIS LINE" >> $(MAKEFILE) gcc -MM -specs=$(MM_SPECS) $(CFLAGS) $(SOURCES) >> $(MAKEFILE) @rm -f $(MM_SPECS) Using my own specs used to prevent $(DJDIR)/lib/gcc-lib/djgpp/3.03/djgpp.ver from beeing included in the output (in gcc 2.95-3.02). Not any more! Why is this file included now? This makes it necessary to 'make depend' whenever the makefile is copied to another PC. It looks like the default specs-file isn't overridden. Running: gcc -specs=./specs -v gives this: Reading specs from e:/djgpp/lib/gcc-lib/djgpp/3.03/specs Reading specs from e:/djgpp/lib/gcc-lib/djgpp/3.03/./specs Configured with: ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disable-nls Thread model: single gcc version 3.0.3 It looks like the default specs-file is *not* overridden and something is wrong with the path prefix logic. Gisle V.