aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meissner <meissner@gcc.gnu.org>1996-10-25 20:21:38 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1996-10-25 20:21:38 +0000
commit60ec8536ae2766fce90be8414d99d37b462a5f19 (patch)
tree49cb34ed3cccdd9422f1a5666ce31d697a34e24a
parent5a9d82a6df29af137fb8677853eb9bd65ad147b3 (diff)
downloadgcc-60ec8536ae2766fce90be8414d99d37b462a5f19.zip
gcc-60ec8536ae2766fce90be8414d99d37b462a5f19.tar.gz
gcc-60ec8536ae2766fce90be8414d99d37b462a5f19.tar.bz2
Fix build problems on cygwin/winnt
From-SVN: r13031
-rw-r--r--gcc/config/rs6000/t-winnt35
1 files changed, 8 insertions, 27 deletions
diff --git a/gcc/config/rs6000/t-winnt b/gcc/config/rs6000/t-winnt
index d87f090..60bb62e 100644
--- a/gcc/config/rs6000/t-winnt
+++ b/gcc/config/rs6000/t-winnt
@@ -1,8 +1,9 @@
# Do not build libgcc1.
-LIBGCC = stmp-crt
-INSTALL_LIBGCC = install-crt
+LIBGCC1 =
CROSS_LIBGCC1 =
+EXTRA_PARTS = crti.o crtn.o
+
EXTRA_HEADERS = $(srcdir)/ginclude/ppc-asm.h
# These are really part of libgcc1, but this will cause them to be
@@ -29,28 +30,8 @@ crti.s: $(srcdir)/config/rs6000/nt-ci.asm
crtn.s: $(srcdir)/config/rs6000/nt-cn.asm
cat $(srcdir)/config/rs6000/nt-cn.asm >crtn.s
-# Build multiple copies of crt{i,n}.o, one for each target switch.
-stmp-crt: crti.s crtn.s $(GCC_PASSES) stmp-multilib config.status
- for i in `$(GCC_FOR_TARGET) --print-multi-lib`; do \
- dir=`echo $$i | sed -e 's/;.*$$//'`; \
- flags=`echo $$i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
- $(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
- LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS) $${flags}" \
- dir="$${dir}" stmp-crt-sub; \
- if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
- done
- touch stmp-crt
-
-# Subroutine of stmp-crt so make -n works.
-stmp-crt-sub:
- $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -c -o $(dir)/crti.o crti.s
- $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -c -o $(dir)/crtn.o crtn.s
-
-# Install multiple versions of crt[in].o
-install-crt: stmp-crt install-dir install-multilib
- for i in `$(GCC_FOR_TARGET) --print-multi-lib`; do \
- dir=`echo $$i | sed -e 's/;.*$$//'`; \
- rm -f $(libsubdir)/$${dir}/crt[in].o; \
- $(INSTALL_DATA) $${dir}/crti.o $(libsubdir)/$${dir}/crti.o; \
- $(INSTALL_DATA) $${dir}/crtn.o $(libsubdir)/$${dir}/crtn.o; \
- done
+crti.o: crti.s
+ $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -c -o crti.o crti.s
+
+crtn.o: crtn.s
+ $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -c -o crtn.o crtn.s