summaryrefslogtreecommitdiffstats
path: root/gnu/lib/csu/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/lib/csu/Makefile')
-rw-r--r--gnu/lib/csu/Makefile19
1 files changed, 12 insertions, 7 deletions
diff --git a/gnu/lib/csu/Makefile b/gnu/lib/csu/Makefile
index 3128219..173920c 100644
--- a/gnu/lib/csu/Makefile
+++ b/gnu/lib/csu/Makefile
@@ -1,20 +1,21 @@
# $FreeBSD$
GCCDIR= ${.CURDIR}/../../../contrib/gcc
+GCCLIB= ${.CURDIR}/../../../contrib/gcclibs
CCDIR= ${.CURDIR}/../../usr.bin/cc
.include "${CCDIR}/Makefile.tgt"
.PATH: ${GCCDIR}/config/${GCC_CPU} ${GCCDIR}
-SRCS= crtstuff.c tconfig.h tm.h
-OBJS= crtbegin.o crtend.o
+SRCS= crtstuff.c tconfig.h tm.h options.h
+OBJS= crtbegin.o crtend.o crtbeginT.o
SOBJS= crtbegin.So crtend.So
CSTD?= gnu89
-CFLAGS+= -DIN_GCC -DHAVE_LD_EH_FRAME_HDR
+CFLAGS+= -DIN_GCC -DHAVE_LD_EH_FRAME_HDR -DDT_CONFIG -D__GLIBC__=3
CFLAGS+= -finhibit-size-directive -fno-inline-functions \
-fno-exceptions -fno-zero-initialized-in-bss \
- -fno-omit-frame-pointer -fno-unit-at-a-time
-CFLAGS+= -I${GCCDIR}/config -I${GCCDIR} -I. \
+ -fno-zero-initialized-in-bss -fno-toplevel-reorder
+CFLAGS+= -I${GCCLIB}/include -I${GCCDIR}/config -I${GCCDIR} -I. \
-I${CCDIR}/cc_tools
CRTS_CFLAGS= -DCRTSTUFFS_O -DSHARED ${PICFLAG}
MKDEP= -DCRT_BEGIN
@@ -46,6 +47,10 @@ crtbegin.o: ${BEGINSRC}
${CC} ${CFLAGS} -g0 -DCRT_BEGIN \
-c -o ${.TARGET} ${.ALLSRC:N*.h}
+crtbeginT.o: ${BEGINSRC}
+ ${CC} ${CFLAGS} -g0 -DCRT_BEGIN -DCRTSTUFFT_O \
+ -c -o ${.TARGET} ${.ALLSRC:N*.h}
+
crtbegin.So: ${BEGINSRC}
${CC} ${CFLAGS} -g0 -DCRT_BEGIN ${CRTS_CFLAGS} \
-c -o ${.TARGET} ${.ALLSRC:N*.h}
@@ -58,8 +63,8 @@ crtend.So: ${ENDSRC}
${CC} ${CFLAGS} -g0 -DCRT_END ${CRTS_CFLAGS} \
-c -o ${.TARGET} ${.ALLSRC:N*.h}
-CLEANFILES+= tm.h tconfig.h
-tm.h tconfig.h: ${CCDIR}/cc_tools/Makefile
+CLEANFILES+= tm.h tconfig.h options.h optionlist cs-tconfig.h cs-tm.h
+tm.h tconfig.h options.h: ${CCDIR}/cc_tools/Makefile
${MAKE} -f ${.ALLSRC} MFILE=${.ALLSRC} GCCDIR=${GCCDIR} ${.TARGET}
realinstall:
OpenPOWER on IntegriCloud