aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cc/cc1obj
diff options
context:
space:
mode:
authorAlexander Kabaev <kan@FreeBSD.org>2007-05-19 04:25:59 +0000
committerAlexander Kabaev <kan@FreeBSD.org>2007-05-19 04:25:59 +0000
commitafb57df680a4b620d54eac30728eca95e51fc0e3 (patch)
treec672216e954c97dc45e1ed2b7fc903556dfde7b5 /gnu/usr.bin/cc/cc1obj
parent25a362d725586cc4e90a63cea065de53c14230ae (diff)
Update bmake glue to build GCC 4.2.
Also: Switch FreeBSD to use libgcc_s.so.1. Use dl_iterate_phdr to locate shared objects' exception frame info instead of depending on older register_frame_info machinery. This allows us to avoid depending on libgcc_s.so.1 in binaries that do not use exception handling directly. As an additional benefit it breaks circular libc <=> libgcc_s.so.1 dependency too. Build newly added libgomp.so.1 library, the runtime support bits for OpenMP. Build LGPLed libssp library. Our libc provides our own BSD-licensed SSP callbacks implementation, so this library is only built to benefit applications that have hadcoded knowledge of libssp.so and libssp_nonshared.a. When linked in from command line, these libraries override libc implementation.
Notes
svn path=/head/; revision=169718
Diffstat (limited to 'gnu/usr.bin/cc/cc1obj')
-rw-r--r--gnu/usr.bin/cc/cc1obj/Makefile29
1 files changed, 11 insertions, 18 deletions
diff --git a/gnu/usr.bin/cc/cc1obj/Makefile b/gnu/usr.bin/cc/cc1obj/Makefile
index 075e7576cd0e..8baf9d6df978 100644
--- a/gnu/usr.bin/cc/cc1obj/Makefile
+++ b/gnu/usr.bin/cc/cc1obj/Makefile
@@ -5,31 +5,24 @@
.PATH: ${GCCDIR}/objc ${GCCDIR}
PROG= cc1obj
-SRCS= main.c objc-parse+DIKED.c objc-act.c objc-lang.c c-decl.c
+SRCS= main.c c-parser.c objc-act.c objc-lang.c c-decl.c
BINDIR= /usr/libexec
NO_MAN=
NO_SHARED?=yes
CFLAGS+= -I${GCCDIR}/objc -I.
-DPADD= ${LIBCC_INT}
-LDADD= ${LIBCC_INT}
+OBJS+= ${PROG}-checksum.o
+DPADD= ${LIBBACKEND} ${LIBCPP} ${LIBDECNUMBER} ${LIBIBERTY}
+LDADD= ${LIBBACKEND} ${LIBCPP} ${LIBDECNUMBER} ${LIBIBERTY}
-#-----------------------------------------------------------------------
-# objc parser
-objc-parse+DIKED.c: objc-parse.c
- sed -e "s/malloc/xmalloc/g" \
- -e "s/realloc/xrealloc/g" \
- ${.ALLSRC} > ${.TARGET}
+DOBJS+= ${SRCS:N*.h:R:S/$/.o/g}
+${PROG}-dummy: ${DOBJS}
+ ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${DOBJS} ${LDADD}
+CLEANFILES+= ${PROG}-dummy
-objc-parse.y: c-parse.in
- sed -e "/^@@ifc.*/,/^@@end_ifc.*/d" \
- -e "/^@@ifobjc.*/d" -e "/^@@end_ifobjc.*/d" \
- ${.ALLSRC} > ${.TARGET}
-
-CLEANFILES= objc-parse+DIKED.c objc-parse.c objc-parse.y
-CLEANFILES+= y.tab.h # we don't use it, but the system YACC rules are naive
-
-#-----------------------------------------------------------------------
+${PROG}-checksum.c: ${PROG}-dummy
+ ../cc_tools/genchecksum ${PROG}-dummy > ${.TARGET}
+CLEANFILES+= ${PROG}-checksum.c
.include <bsd.prog.mk>