Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 May 2002 08:14:24 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 11118 for review
Message-ID:  <200205101514.g4AFEOV06131@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=11118

Change 11118 by peter@peter_ia64 on 2002/05/10 08:13:37

	use the correct crt*.asm files.

Affected files ...

... //depot/projects/ia64/gnu/lib/csu/Makefile#4 edit

Differences ...

==== //depot/projects/ia64/gnu/lib/csu/Makefile#4 (text+ko) ====

@@ -6,7 +6,13 @@
 CCDIR=	${.CURDIR}/../../usr.bin/cc
 .include "${CCDIR}/Makefile.tgt"
 
+.PATH: ${GCCDIR}/config/${GCC_CPU}
+
+.if ${TARGET_ARCH} == "ia64"
+SRCS=		crtbegin.asm crtend.asm
+.else
 SRCS=		crtstuff.c tconfig.h
+.endif
 OBJS=		crtbegin.o crtend.o
 SOBJS=		crtbegin.So crtend.So
 CFLAGS+=	-DIN_GCC -DHAVE_LD_EH_FRAME_HDR
@@ -19,7 +25,6 @@
 NOLIB=		true
 
 .if ${TARGET_ARCH} == "sparc64"
-.PATH: ${GCCDIR}/config/${GCC_CPU}
 TGTOBJS=	crtfastmath.o
 SRCS+=		crtfastmath.c
 .endif
@@ -28,7 +33,26 @@
 
 crtbegin.o crtbegin.So crtend.o crtend.So: ${SRCS}
 
+.if ${TARGET_ARCH} == "ia64"
+depend:
+
 crtbegin.o:
+	${CC} -x assembler-with-cpp \
+		-c -o ${.TARGET} ${.ALLSRC:M*crtbegin*}
+
+crtbegin.So:
+	${CC} -x assembler-with-cpp -DSHARED \
+		-c -o ${.TARGET} ${.ALLSRC:M*crtbegin*}
+
+crtend.o:
+	${CC} -x assembler-with-cpp \
+		-c -o ${.TARGET} ${.ALLSRC:M*crtend*}
+
+crtend.So:
+	${CC} -x assembler-with-cpp -DSHARED \
+		-c -o ${.TARGET} ${.ALLSRC:M*crtend*}
+.else
+crtbegin.o:
 	${CC} ${CFLAGS} -g0 -DCRT_BEGIN \
 		-c -o ${.TARGET} ${.ALLSRC:M*crtstuff*}
 
@@ -43,6 +67,7 @@
 crtend.So:
 	${CC} ${CFLAGS} -g0 -DCRT_END ${CRTS_CFLAGS} \
 		-c -o ${.TARGET} ${.ALLSRC:M*crtstuff*}
+.endif
 
 CLEANFILES=	tconfig.h
 tconfig.h: ${CCDIR}/cc_tools/Makefile

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205101514.g4AFEOV06131>