mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-21 15:45:02 +00:00
Fix to work on sparc64 (which has an extra crt .o file).
This commit is contained in:
parent
bc2fcd34bc
commit
df411a300f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/cvs2svn/branches/WIP_GCC31/; revision=96131
@ -16,11 +16,12 @@ CFLAGS+= -I${GCCDIR}/config -I${GCCDIR} -I. \
|
|||||||
-I${CCDIR}/cc_tools
|
-I${CCDIR}/cc_tools
|
||||||
CRTS_CFLAGS= -DCRTSTUFFS_O ${PICFLAG}
|
CRTS_CFLAGS= -DCRTSTUFFS_O ${PICFLAG}
|
||||||
MKDEPCMD= CC=${CC} MKDEP_CPP_OPTS="-M -DCRT_BEGIN" mkdep
|
MKDEPCMD= CC=${CC} MKDEP_CPP_OPTS="-M -DCRT_BEGIN" mkdep
|
||||||
INTERNALLIB= true
|
NOLIB= true
|
||||||
|
|
||||||
.if ${TARGET_ARCH} == "sparc64"
|
.if ${TARGET_ARCH} == "sparc64"
|
||||||
.PATH: ${GCCDIR}/config/${GCC_CPU}
|
.PATH: ${GCCDIR}/config/${GCC_CPU}
|
||||||
TGTOBJS= crtfastmath.o
|
TGTOBJS= crtfastmath.o
|
||||||
|
SRCS+= crtfastmath.c
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
all: ${OBJS} ${SOBJS} ${TGTOBJS}
|
all: ${OBJS} ${SOBJS} ${TGTOBJS}
|
||||||
@ -29,23 +30,23 @@ crtbegin.o crtbegin.So crtend.o crtend.So: ${SRCS}
|
|||||||
|
|
||||||
crtbegin.o:
|
crtbegin.o:
|
||||||
${CC} ${CFLAGS} -g0 -DCRT_BEGIN \
|
${CC} ${CFLAGS} -g0 -DCRT_BEGIN \
|
||||||
-c -o ${.TARGET} ${.ALLSRC:N*.h}
|
-c -o ${.TARGET} ${.ALLSRC:M*crtstuff*}
|
||||||
|
|
||||||
crtbegin.So:
|
crtbegin.So:
|
||||||
${CC} ${CFLAGS} -g0 -DCRT_BEGIN ${CRTS_CFLAGS} \
|
${CC} ${CFLAGS} -g0 -DCRT_BEGIN ${CRTS_CFLAGS} \
|
||||||
-c -o ${.TARGET} ${.ALLSRC:N*.h}
|
-c -o ${.TARGET} ${.ALLSRC:M*crtstuff*}
|
||||||
|
|
||||||
crtend.o:
|
crtend.o:
|
||||||
${CC} ${CFLAGS} -g0 -DCRT_END \
|
${CC} ${CFLAGS} -g0 -DCRT_END \
|
||||||
-c -o ${.TARGET} ${.ALLSRC:N*.h}
|
-c -o ${.TARGET} ${.ALLSRC:M*crtstuff*}
|
||||||
|
|
||||||
crtend.So:
|
crtend.So:
|
||||||
${CC} ${CFLAGS} -g0 -DCRT_END ${CRTS_CFLAGS} \
|
${CC} ${CFLAGS} -g0 -DCRT_END ${CRTS_CFLAGS} \
|
||||||
-c -o ${.TARGET} ${.ALLSRC:N*.h}
|
-c -o ${.TARGET} ${.ALLSRC:M*crtstuff*}
|
||||||
|
|
||||||
CLEANFILES= tconfig.h
|
CLEANFILES= tconfig.h
|
||||||
tconfig.h: ${CCDIR}/cc_tools/Makefile
|
tconfig.h: ${CCDIR}/cc_tools/Makefile
|
||||||
${MAKE} -f ${.ALLSRC} MFILE=${.ALLSRC} ${.TARGET}
|
${MAKE} -f ${.ALLSRC} MFILE=${.ALLSRC} GCCDIR=${GCCDIR} ${.TARGET}
|
||||||
|
|
||||||
realinstall:
|
realinstall:
|
||||||
.for file in ${OBJS} ${SOBJS} ${TGTOBJS}
|
.for file in ${OBJS} ${SOBJS} ${TGTOBJS}
|
||||||
|
Loading…
Reference in New Issue
Block a user