From afb57df680a4b620d54eac30728eca95e51fc0e3 Mon Sep 17 00:00:00 2001 From: Alexander Kabaev Date: Sat, 19 May 2007 04:25:59 +0000 Subject: 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. --- gnu/usr.bin/cc/libcpp/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 gnu/usr.bin/cc/libcpp/Makefile (limited to 'gnu/usr.bin/cc/libcpp/Makefile') diff --git a/gnu/usr.bin/cc/libcpp/Makefile b/gnu/usr.bin/cc/libcpp/Makefile new file mode 100644 index 000000000000..23bc26e2a228 --- /dev/null +++ b/gnu/usr.bin/cc/libcpp/Makefile @@ -0,0 +1,23 @@ +# $FreeBSD$ + +# Use our headers in preference to ones from ../cc_tools. +CFLAGS+= -I${.CURDIR} -I. + +.include "../Makefile.inc" + +.PATH: ${GCCLIB}/libcpp + +LIB= cpp +SRCS= localedir.h +SRCS+= charset.c directives.c errors.c expr.c files.c \ + identifiers.c init.c lex.c line-map.c macro.c mkdeps.c \ + pch.c symtab.c traditional.c +INTERNALLIB= +WARNS?= 1 + +localedir.h: Makefile + echo '#define LOCALEDIR "/usr/share/locale"' > localedir.h +SRCS+= localedir.h +CLEANFILES+= localedir.h + +.include -- cgit v1.3