diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2005-07-05 06:56:55 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2005-07-05 06:56:55 +0000 |
commit | e21ba9318af982631f534bf0074350d8c1b68a3e (patch) | |
tree | 3d88c22b4e71ee05f21290dd91f08794443d94e4 /gcc | |
parent | 9bae279793026ee75aafcbbcd4daf6c3348c4e9e (diff) | |
download | gcc-e21ba9318af982631f534bf0074350d8c1b68a3e.zip gcc-e21ba9318af982631f534bf0074350d8c1b68a3e.tar.gz gcc-e21ba9318af982631f534bf0074350d8c1b68a3e.tar.bz2 |
Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET) instead of $<.
* Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
instead of $<. Don't remove ./as if it already exists.
From-SVN: r101620
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/Makefile.in | 12 |
2 files changed, 13 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 00eaf5d..fb8016b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-07-04 Kazu Hirata <kazu@codesourcery.com> + + * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET) + instead of $<. Don't remove ./as if it already exists. + 2005-07-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> PR target/21723 diff --git a/gcc/Makefile.in b/gcc/Makefile.in index ade51f7..bf2a843 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1206,13 +1206,17 @@ cpp$(exeext): gcc.o cppspec.o version.o intl.o prefix.o \ # can be either `sometool' (if it is a script) or `sometool$(exeext)' # (if it is a hard link). stamp-as: $(ORIGINAL_AS_FOR_TARGET) - @echo creating as; rm -f as; \ - case "$<" in \ - ./*) ;; \ + @echo creating as; \ + case "$(ORIGINAL_AS_FOR_TARGET)" in \ + ./as) ;; \ ../*) \ + rm -f as$(exeext); \ echo $(LN) $< as$(exeext); \ $(LN) $< as$(exeext) || cp $< as$(exeext) ;; \ - *) echo '#!$(SHELL)' > as; echo 'exec $< "$$@"' >> as ; \ + *) \ + rm -f as; \ + echo '#!$(SHELL)' > as; \ + echo 'exec $(ORIGINAL_AS_FOR_TARGET) "$$@"' >> as ; \ chmod +x as ;; \ esac echo timestamp > $@ |