This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
I'd prefer that Danny review this but neither of us has the right to approve this patch.
However, it seems like you're adding extra stuff to the Makefile where it is already trying to do the right thing if $(LN) fails. Couldn't LN just be declared as "cp" for mingw or, alternatively, couldn't it be defined as some failing command so that the cp in the failing condition would be invoked?
- case "$<" in \ - ./*) ;; \ - ../*) \ - echo $(LN) $< as$(exeext); \ - $(LN) $< as$(exeext) || cp $< as$(exeext) ;; \ - *) echo '#!$(SHELL)' > as; echo 'exec $< "$$@"' >> as ; \ - chmod +x as ;; \ + case "$(build)" in \ + *mingw32*) \ + cp $< as$(exeext) ;; \ + *) \ + case "$<" in \ + ./*) ;; \ + ../*) \ + echo $(LN) $< as$(exeext); \ + $(LN) $< as$(exeext) || cp $< as$(exeext) ;; \ + *) echo '#!$(SHELL)' > as; echo 'exec $< "$$@"' >> as ; \ + chmod +x as ;; \ + esac \
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |