2011/4/5 Arnaud Charlet <char...@adacore.com>: >> Hmm, AFAICS is in Mafile.in the following line present: >> >> # Copy target independent sources >> $(foreach f,$(ADA_INCLUDE_SRCS) $(LIBGNAT_SRCS), \ >> $(LN_S) $(fsrcpfx)ada/$(f) $(RTSDIR) ;) true >> >> which seems to me the cause for this patch. > > The above loop will link/copy files only, not directories, so your patch > should have no effect and is incorrect. > > Either there's a bug in cp -p in msys, or the problem is elsewhere, and > I'd like to understand where, since I cannot guess with the info in the PR, > nor with my knowledge of the GNAT Makefiles. > > Arno >
Well, there is a bug AFAICS. Issue is that 'ln -s file dir' fails, but 'ln -s file file1' works. See for this thread http://lists.zerezo.com/mingw-users/msg03642.html, where this is described. So it might be also a valid fix here to append to directory the $f again. Kai