andrewwutw/build-djgpp

Trouble generating a .map-file

gvanem opened this issue · 1 comments

First I have to say "well done"! This is an amazing package. I was able to use my almost 20 years GNU-makefiles; just add a $(DJ_PREFIX) ahead of gcc and build. Try that with an old Microslut VS project file today.

The problem I have with generating a .map-file in the final link-stage. Like I'm used to in MinGW:

f:/gv/djgpp/bin/i586-pc-msdosdjgpp-gcc -o curl.exe  -Wl,--print-map,--sort-common \
 <lots of .o-files here> ../lib/libcurl.a  <some .a files here>  > curl.map
Warning: input file is neither COFF nor stubbed COFF
rename of curl.000 to curl.exe failed.
The error was: File exists

AFAICR from the old DOS-days, I had to use the redir command. Like:

$(DJDIR)/bin/redir -o $*.map $(CC) -Wl,--print-map,--sort-common ...

I this needed here or what's up?

My bad, I somehow redirected to curl.exe!! It works as it does in MinGW. Closing.