From 0d4ffb0f07910833279d9e922c82f9968af3e30f Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Tue, 18 Dec 2001 03:05:22 +0000 Subject: Working changes for GCC 3.0.2. We now fake out the native libgcc.mk + GNU autoconf'ed Makefile. This gives us the flexability we will need to support our new arches (StrongARM, Sparc64, PowerPC, and IA-64). If this new way proves to be too much a hassle, I still have a close-to-being-finished version that is more like the 2.95 version of this file. --- gnu/lib/libgcc/Makefile | 230 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 230 insertions(+) create mode 100644 gnu/lib/libgcc/Makefile (limited to 'gnu/lib') diff --git a/gnu/lib/libgcc/Makefile b/gnu/lib/libgcc/Makefile new file mode 100644 index 0000000000000..9e1294471ab17 --- /dev/null +++ b/gnu/lib/libgcc/Makefile @@ -0,0 +1,230 @@ +# $FreeBSD$ +# ex:ts=8 + +GCCDIR= ${.CURDIR}/../../../contrib/gcc + +.PATH: ${GCCDIR}/cp ${GCCDIR} + +# allow to be overridden for the a.out case +.if !defined(LIB) || ${LIB} != "gcc_r" +LIB= gcc +.endif + +.if ${OBJFORMAT} == aout +# Install libgcc_pic.a, since ld.so uses it. +INSTALL_PIC_ARCHIVE= yes +.endif + +CFLAGS+= -fexceptions +CFLAGS+= -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED +.if ${OBJFORMAT} != aout +#CFLAGS+= -fPIC -D_PTHREADS -DGTHREAD_USE_WEAK +CFLAGS+= -D_PTHREADS -DGTHREAD_USE_WEAK +.endif + +all: lib${LIB}.a + +lib${LIB}.a: libgcc_build.a + cp -p ${.ALLSRC} ${.TARGET} + +CLEANFILES+= lib${LIB}.a + +# +# fake out to semi-follow what is done in GCC's Makefile.in +# +srcdir= ${GCCDIR} +GCC_FOR_TARGET= ${CC} +LIBGCC2_CFLAGS= ${CFLAGS} +INCLUDES= -I${GCCDIR}/config \ + -I${GCCDIR} \ + -I. \ + -I${.CURDIR}/../../usr.bin/cc/cc_tools + +COMMONHDRS= config.h tconfig.h tm.h +CLEANFILES+= ${COMMONHDRS} +SRCS+= ${COMMONHDRS} + +config.h: + echo '#include "auto-host.h"' > ${.TARGET} + echo '#include "gansidecl.h"' >> ${.TARGET} + echo '#include <${MACHINE_ARCH}/xm-${MACHINE_ARCH}.h>' >> ${.TARGET} + echo '#include ' >> ${.TARGET} + echo '#include "defaults.h"' >> ${.TARGET} + echo '#include "hwint.h"' >> ${.TARGET} + echo '#ifndef POSIX' >> ${.TARGET} + echo '# define POSIX' >> ${.TARGET} + echo '#endif' >> ${.TARGET} + + +tconfig.h: + echo '#include "gansidecl.h"' > ${.TARGET} + echo '#include "${MACHINE_ARCH}/xm-${MACHINE_ARCH}.h"' >> ${.TARGET} + echo '#include "defaults.h"' >> ${.TARGET} + + +# KEEP THIS IN SYNC with src/gcc/usr.bin/cc/cc_tools/Makefile !! +tm.h: + echo '#include "gansidecl.h"' > ${.TARGET} + echo '#include "${MACHINE_ARCH}/${MACHINE_ARCH}.h"' >> ${.TARGET} +.if ${MACHINE_ARCH} == "i386" + echo '#include "${MACHINE_ARCH}/att.h"' >> ${.TARGET} +.endif + echo '#include ' >> ${.TARGET} + echo '#include ' >> ${.TARGET} +.if exists(${MACHINE_ARCH}/config/${MACHINE_ARCH}/elf.h) + echo '#include "${MACHINE_ARCH}/elf.h"' >> ${.TARGET} +.endif + echo '#include "${MACHINE_ARCH}/freebsd.h"' >> ${.TARGET} +.if ${MACHINE_ARCH} == "i386" + echo '#include "${MACHINE_ARCH}/perform.h"' >> ${.TARGET} +.endif + echo '#include "defaults.h"' >> ${.TARGET} + + +# +# XXX Make sure changes in GCC's Makefile.in are synced here !! +# + +libgcc_build.a: ${COMMONHDRS} libgcc.mk + $(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \ + AR_FOR_TARGET="ar" \ + AR_CREATE_FOR_TARGET="ar rc" \ + AR_FLAGS_FOR_TARGET="" \ + OLDCC="${CC}" CCLIBFLAGS="-O" \ + CFLAGS="$(CFLAGS) $(WARN_CFLAGS)" \ + RANLIB_FOR_TARGET="ranlib" \ + RANLIB_TEST_FOR_TARGET="true" \ + NM_FOR_TARGET="nm" AWK="awk" \ + LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)" \ + INCLUDES="$(INCLUDES)" MAYBE_USE_COLLECT2="$(MAYBE_USE_COLLECT2)" \ + CONFIG_H="${COMMONHDRS}" MACHMODE_H="$(MACHMODE_H)" \ + LIB1ASMSRC='$(LIB1ASMSRC)' \ + -f libgcc.mk ./libgcc_build.a + +# +# XXX Make sure changes in GCC's Makefile.in are synced here !! +# + +libgcc.mk: mklibgcc + objext='.o' \ + OLDCC='${CC}' \ + LIBGCC1='libgcc1.a' \ + LIB1FUNCS='$(LIB1FUNCS)' \ + LIB1ASMFUNCS='$(LIB1ASMFUNCS)' \ + LIB1FUNCS_EXTRA='$(LIB1FUNCS_EXTRA)' \ + LIB2FUNCS='$(LIB2FUNCS)' \ + LIB2FUNCS_ST='$(LIB2FUNCS_ST)' \ + LIB2ADD='$(LIB2ADD)' \ + LIB2ADDEH='$(LIB2ADDEH)' \ + LIB2ADDEHDEP='$(LIB2ADDEHDEP)' \ + LIB2ADD_ST='$(LIB2ADD_ST)' \ + FPBIT='$(FPBIT)' \ + FPBIT_FUNCS='$(FPBIT_FUNCS)' \ + DPBIT='$(DPBIT)' \ + DPBIT_FUNCS='$(DPBIT_FUNCS)' \ + MULTILIBS='.;' \ + EXTRA_MULTILIB_PARTS='$(EXTRA_MULTILIB_PARTS)' \ + SHLIB_LINK='$(SHLIB_LINK)' \ + SHLIB_INSTALL='$(SHLIB_INSTALL)' \ + SHLIB_EXT='$(SHLIB_EXT)' \ + SHLIB_MULTILIB='$(SHLIB_MULTILIB)' \ + SHLIB_MKMAP='$(SHLIB_MKMAP)' \ + SHLIB_MAPFILES='$(SHLIB_MAPFILES)' \ + SHLIB_NM_FLAGS='$(SHLIB_NM_FLAGS)' \ + $(SHELL) mklibgcc > tmp-libgcc.mk + echo ".PATH: ${GCCDIR}" > ${.TARGET} + sed -e 's|libgcc/\./||g' tmp-libgcc.mk >> ${.TARGET} + rm tmp-libgcc.mk + touch config.status stmp-int-hdrs + +mklibgcc: mklibgcc.in + sed \ + -e 's|libgcc\.a|libgcc_build.a|g' \ + -e 's|@srcdir@|${GCCDIR}|g' \ + -e 's|@build_canonical@|${MACHINE_ARCH}-deo-freebsd5.0|g' \ + -e 's|@target@|${MACHINE_ARCH}-deo-freebsd5.0|g' \ + -e 's|@enable_shared@|no|g' \ + -e 's|@NO_MINUS_C_MINUS_O@||g' \ + ${.ALLSRC} > ${.TARGET} + +CLEANFILES+= mklibgcc libgcc.mk config.status \ + stmp-int-hdrs tmp-libgcc.mk stmp-dirs \ + libgcc_build.a + +# +# XXX This is a hack, but it seems to work. +# When upgrading GCC, get the following defintions straight from Makefile.in +# + +# Members of libgcc1.a. +LIB1FUNCS = _mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3 \ + _lshrsi3 _ashrsi3 _ashlsi3 \ + _divdf3 _muldf3 _negdf2 _adddf3 _subdf3 \ + _fixdfsi _fixsfsi _floatsidf _floatsisf _truncdfsf2 _extendsfdf2 \ + _addsf3 _negsf2 _subsf3 _mulsf3 _divsf3 \ + _eqdf2 _nedf2 _gtdf2 _gedf2 _ltdf2 _ledf2 \ + _eqsf2 _nesf2 _gtsf2 _gesf2 _ltsf2 _lesf2 + +# Library members defined in libgcc2.c. +LIB2FUNCS = _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 \ + _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _clz \ + _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf \ + _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi \ + _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi \ + _fixtfdi _fixunstfdi _floatditf \ + _clear_cache _trampoline __main _exit \ + _absvsi2 _absvdi2 _addvsi3 _addvdi3 _subvsi3 _subvdi3 \ + _mulvsi3 _mulvdi3 _negvsi2 _negvdi2 \ + _ctors + +# Defined in libgcc2.c, included only in the static library. +LIB2FUNCS_ST = _eprintf _bb __gcc_bcmp + +FPBIT_FUNCS = _pack_sf _unpack_sf _addsub_sf _mul_sf _div_sf \ + _fpcmp_parts_sf _compare_sf _eq_sf _ne_sf _gt_sf _ge_sf \ + _lt_sf _le_sf _unord_sf _si_to_sf _sf_to_si _negate_sf _make_sf \ + _sf_to_df _thenan_sf _sf_to_usi _usi_to_sf + +DPBIT_FUNCS = _pack_df _unpack_df _addsub_df _mul_df _div_df \ + _fpcmp_parts_df _compare_df _eq_df _ne_df _gt_df _ge_df \ + _lt_df _le_df _unord_df _si_to_df _df_to_si _negate_df _make_df \ + _df_to_sf _thenan_df _df_to_usi _usi_to_df + +# Build libgcc.a. +LIB2ADD = $(LIB2FUNCS_EXTRA) +LIB2ADD_ST = $(LIB2FUNCS_STATIC_EXTRA) + +# Additional sources to handle exceptions; overridden on ia64. +LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \ + $(srcdir)/unwind-sjlj.c +LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h + +MACHMODE_H = machmode.h machmode.def + +# nm flags to list global symbols in libgcc object files. +SHLIB_NM_FLAGS = -pg + +# +# Bmake'ed tweaks for the GCC Makefile.in barrowed bits. +# + +.for objfile in ${LIB1FUNCS} ${LIB2FUNCS} ${LIB2FUNCS_ST} ${FPBIT_FUNCS} \ + ${DPBIT_FUNCS} +CLEANFILES+= ${objfile}.o +.endfor + +CLEANFILES+= ${LIB2ADDEH:S/.c/.o/g:S/$(srcdir)\///g} + +CLEANDIRS+= libgcc + +# +# Need to supply an `install' target as we aren't using bsd.lib.mk. +# + +install: + ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + ${_INSTALLFLAGS} lib${LIB}.a ${DESTDIR}${LIBDIR} + +.include +.include +.include -- cgit v1.3 From 3a7789cfeb789b970a110eccac99ed93f00d0f38 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Tue, 18 Dec 2001 03:11:35 +0000 Subject: Working changes for GCC 3.0.2. --- gnu/lib/csu/Makefile | 89 ++++++++++++++++++++++++++++++++++++++++++ gnu/usr.bin/cc/Makefile.inc | 58 +++++++++++++++++++++++++++ gnu/usr.bin/cc/cc1obj/Makefile | 36 +++++++++++++++++ 3 files changed, 183 insertions(+) create mode 100644 gnu/lib/csu/Makefile create mode 100644 gnu/usr.bin/cc/Makefile.inc create mode 100644 gnu/usr.bin/cc/cc1obj/Makefile (limited to 'gnu/lib') diff --git a/gnu/lib/csu/Makefile b/gnu/lib/csu/Makefile new file mode 100644 index 0000000000000..c3a3f3e152ed2 --- /dev/null +++ b/gnu/lib/csu/Makefile @@ -0,0 +1,89 @@ +# $FreeBSD$ + +GCCDIR= ${.CURDIR}/../../../contrib/gcc + +TARGET_ARCH?= ${MACHINE_ARCH} + +.if ${TARGET_ARCH} == "alpha" +.PATH: ${GCCDIR}/config/alpha +SRCS= crtbegin.s crtend.s +UGLYHACK= -x assembler +.else +.PATH: ${GCCDIR} +SRCS= crtstuff.c tm.h +.endif + +OBJS= crtbegin.o crtend.o +SOBJS= crtbegin.So crtend.So +CFLAGS+= -I${GCCDIR}/config -I${GCCDIR} -I. \ + -I${.CURDIR}/../../usr.bin/cc/cc_tools -I../../usr.bin/cc/cc_tools \ + -DIN_GCC \ + -finhibit-size-directive -fno-inline-functions \ + -fno-exceptions -fno-omit-frame-pointer +NOMAN= true +NOPIC= true +NOPROFILE= true +INTERNALLIB= true +CLEANFILES+= tm.h + +CRTS_CFLAGS= -DCRTSTUFFS_O ${PICFLAG} + +all: ${OBJS} ${SOBJS} + +.if ${TARGET_ARCH} == "alpha" +crtbegin.o crtbegin.So: crtbegin.s +crtend.o crtend.So: crtend.s +.for PART in begin end +CLEANFILES+= crt${PART}.s +crt${PART}.s: crt${PART}.asm + ln -sf ${.ALLSRC} ${.TARGET} +.endfor +.else +crtbegin.o crtbegin.So crtend.o crtend.So: crtstuff.c tm.h +.endif + +crtbegin.o: + ${CC} ${CFLAGS} -g0 -DCRT_BEGIN \ + -c -o ${.TARGET} ${UGLYHACK} ${.ALLSRC:N*.h} + +crtbegin.So: + ${CC} ${CFLAGS} -g0 -DCRT_BEGIN ${CRTS_CFLAGS} \ + -c -o ${.TARGET} ${UGLYHACK} ${.ALLSRC:N*.h} + +crtend.o: + ${CC} ${CFLAGS} -g0 -DCRT_END \ + -c -o ${.TARGET} ${UGLYHACK} ${.ALLSRC:N*.h} + +crtend.So: + ${CC} ${CFLAGS} -g0 -DCRT_END ${CRTS_CFLAGS} \ + -c -o ${.TARGET} ${UGLYHACK} ${.ALLSRC:N*.h} + +# KEEP THIS IN SYNC with src/gnu/usr.bin/cc/cc_tools/Makefile !! +tm.h: + echo '#include "gansidecl.h"' > ${.TARGET} + echo '#include "${MACHINE_ARCH}/${MACHINE_ARCH}.h"' >> ${.TARGET} +.if ${MACHINE_ARCH} == "i386" + echo '#include "${MACHINE_ARCH}/att.h"' >> ${.TARGET} +.endif + echo '#include ' >> ${.TARGET} + echo '#include ' >> ${.TARGET} +.if exists(${MACHINE_ARCH}/config/${MACHINE_ARCH}/elf.h) + echo '#include "${MACHINE_ARCH}/elf.h"' >> ${.TARGET} +.endif + echo '#include "${MACHINE_ARCH}/freebsd.h"' >> ${.TARGET} +.if ${MACHINE_ARCH} == "i386" + echo '#include "${MACHINE_ARCH}/perform.h"' >> ${.TARGET} +.endif + echo '#include "defaults.h"' >> ${.TARGET} + echo '#ifndef GENERATOR_FILE' >> ${.TARGET} + echo '#include "insn-codes.h"' >> ${.TARGET} + echo '#include "insn-flags.h"' >> ${.TARGET} + echo '#endif' >> ${.TARGET} + +realinstall: +.for file in ${OBJS} ${SOBJS} + ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + ${file} ${DESTDIR}${LIBDIR}/${file:S/.So$/S.o/} +.endfor + +.include diff --git a/gnu/usr.bin/cc/Makefile.inc b/gnu/usr.bin/cc/Makefile.inc new file mode 100644 index 0000000000000..97c0bb09b6127 --- /dev/null +++ b/gnu/usr.bin/cc/Makefile.inc @@ -0,0 +1,58 @@ +# $FreeBSD$ + +.include "../Makefile.inc" + +# Sometimes this is .include'd several times... +.if !defined(GCCDIR) +GCCDIR= ${.CURDIR}/../../../../contrib/gcc + +TARGET_ARCH?= ${MACHINE_ARCH} +GCC_ARCH= ${TARGET_ARCH} + +# Machine description. +MD_FILE= ${GCCDIR}/config/${GCC_ARCH}/${GCC_ARCH}.md +OUT_FILE= ${GCC_ARCH}.c +OUT_OBJ= ${GCC_ARCH} +target= ${TARGET_ARCH}-unknown-freebsd + +version!= sed -n /version_string/p ${GCCDIR}/version.c | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' + +CFLAGS+= -DIN_GCC -DHAVE_CONFIG_H +CFLAGS+= -DPREFIX=\"${TOOLS_PREFIX}/usr\" +CFLAGS+= -DWANT_COMPILER_INVARIANTS + +# If building 64-bit longs for the i386, "_LARGE_LONG" should also be defined +# to get the proper sizes in limits.h +.if defined(LONG_TYPE_SIZE) +CFLAGS+= -DLONG_TYPE_SIZE=${LONG_TYPE_SIZE} +.endif + +.if ${TARGET_ARCH} != ${MACHINE_ARCH} +CFLAGS+= -DCROSS_COMPILE +.endif + +.if defined(WANT_FORCE_OPTIMIZATION_DOWNGRADE) +CFLAGS+= -DFORCE_OPTIMIZATION_DOWNGRADE=${WANT_FORCE_OPTIMIZATION_DOWNGRADE} +.endif + +.if exists(${.OBJDIR}/../cc_tools) +CFLAGS+= -I${.OBJDIR}/../cc_tools +.endif +CFLAGS+= -I${.CURDIR}/../cc_tools +# This must go after the -I for cc_tools to resolve ambiguities for hash.h +# correctly. +CFLAGS+= -I${GCCDIR} -I${GCCDIR}/config + +.if exists(${.OBJDIR}/../cc_fbsd) +LIBCC_FBSD= ${.OBJDIR}/../cc_fbsd/libcc_fbsd.a +.else +LIBCC_FBSD= ${.CURDIR}/../cc_fbsd/libcc_fbsd.a +.endif + +.if exists(${.OBJDIR}/../cc_int) +LIBCC_INT= ${.OBJDIR}/../cc_int/libcc_int.a +.else +LIBCC_INT= ${.CURDIR}/../cc_int/libcc_int.a +.endif + +.endif # !GCCDIR diff --git a/gnu/usr.bin/cc/cc1obj/Makefile b/gnu/usr.bin/cc/cc1obj/Makefile new file mode 100644 index 0000000000000..dff38fb4b5832 --- /dev/null +++ b/gnu/usr.bin/cc/cc1obj/Makefile @@ -0,0 +1,36 @@ +# $FreeBSD$ + +.include "../Makefile.inc" + +.PATH: ../cc_tools ${GCCDIR}/objc ${GCCDIR} + +PROG= cc1obj +SRCS= objc-parse.c objc-parse.h objc-parse.h objc-act.c +# Ugh, compiled twice... +SRCS+= c-decl.c c-lex.c c-typeck.c +BINDIR= /usr/libexec +NOMAN= 1 +NOSHARED=yes + +CFLAGS+= -I${GCCDIR}/objc -I. + +DPADD+= ${LIBCC_INT} +LDADD+= ${LIBCC_INT} + +#----------------------------------------------------------------------- +# objc parser +.ORDER: objc-parse.c objc-parse.h +objc-parse.c objc-parse.h: c-parse.in + sed -e "/^ifc$$/,/^end ifc$$/d" \ + -e "/^ifobjc$$/d" -e "/^end ifobjc$$/d" \ + ${GCCDIR}/c-parse.in > objc-parse.y + ${YACC} -d -o objc-parse.c objc-parse.y + ln -sf objc-parse.h c-parse.h + mv objc-parse.y objc-parse.y.out + +CLEANFILES+= objc-parse.c objc-parse.h c-parse.h \ + objc-parse.y objc-parse.y.out # insurance + +#----------------------------------------------------------------------- + +.include -- cgit v1.3 From 9bd6dcbf9796e5274469268a9e2f939ff9beb27f Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Fri, 5 Apr 2002 08:54:28 +0000 Subject: MFC: rev 1.4 (style reorg) --- gnu/lib/csu/Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'gnu/lib') diff --git a/gnu/lib/csu/Makefile b/gnu/lib/csu/Makefile index c3a3f3e152ed2..3c57937ba8004 100644 --- a/gnu/lib/csu/Makefile +++ b/gnu/lib/csu/Makefile @@ -20,11 +20,7 @@ CFLAGS+= -I${GCCDIR}/config -I${GCCDIR} -I. \ -DIN_GCC \ -finhibit-size-directive -fno-inline-functions \ -fno-exceptions -fno-omit-frame-pointer -NOMAN= true -NOPIC= true -NOPROFILE= true INTERNALLIB= true -CLEANFILES+= tm.h CRTS_CFLAGS= -DCRTSTUFFS_O ${PICFLAG} @@ -39,7 +35,7 @@ crt${PART}.s: crt${PART}.asm ln -sf ${.ALLSRC} ${.TARGET} .endfor .else -crtbegin.o crtbegin.So crtend.o crtend.So: crtstuff.c tm.h +crtbegin.o crtbegin.So crtend.o crtend.So: ${SRCS} .endif crtbegin.o: @@ -58,6 +54,7 @@ crtend.So: ${CC} ${CFLAGS} -g0 -DCRT_END ${CRTS_CFLAGS} \ -c -o ${.TARGET} ${UGLYHACK} ${.ALLSRC:N*.h} +CLEANFILES+= tm.h # KEEP THIS IN SYNC with src/gnu/usr.bin/cc/cc_tools/Makefile !! tm.h: echo '#include "gansidecl.h"' > ${.TARGET} -- cgit v1.3 From 4d484dd742600a0cca79daa23891d4240f4aa34d Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Fri, 5 Apr 2002 09:02:52 +0000 Subject: Update for GCC 3.1. (Alpha now uses crtstuff rather than the ASM verisons!) --- gnu/lib/csu/Makefile | 69 ++++++++++++---------------------------------------- 1 file changed, 16 insertions(+), 53 deletions(-) (limited to 'gnu/lib') diff --git a/gnu/lib/csu/Makefile b/gnu/lib/csu/Makefile index 3c57937ba8004..27412de8f668c 100644 --- a/gnu/lib/csu/Makefile +++ b/gnu/lib/csu/Makefile @@ -1,81 +1,44 @@ # $FreeBSD$ -GCCDIR= ${.CURDIR}/../../../contrib/gcc - -TARGET_ARCH?= ${MACHINE_ARCH} - -.if ${TARGET_ARCH} == "alpha" -.PATH: ${GCCDIR}/config/alpha -SRCS= crtbegin.s crtend.s -UGLYHACK= -x assembler -.else +GCCDIR= ${.CURDIR}/../../../contrib/gcc .PATH: ${GCCDIR} -SRCS= crtstuff.c tm.h -.endif + +SRCS= crtstuff.c tconfig.h OBJS= crtbegin.o crtend.o SOBJS= crtbegin.So crtend.So -CFLAGS+= -I${GCCDIR}/config -I${GCCDIR} -I. \ - -I${.CURDIR}/../../usr.bin/cc/cc_tools -I../../usr.bin/cc/cc_tools \ - -DIN_GCC \ - -finhibit-size-directive -fno-inline-functions \ +CFLAGS+= -DIN_GCC -DHAVE_LD_EH_FRAME_HDR +CFLAGS+= -finhibit-size-directive -fno-inline-functions \ -fno-exceptions -fno-omit-frame-pointer -INTERNALLIB= true - +CFLAGS+= -I${GCCDIR}/config -I${GCCDIR} -I. \ + -I${.CURDIR}/../../usr.bin/cc/cc_tools CRTS_CFLAGS= -DCRTSTUFFS_O ${PICFLAG} +MKDEPCMD= CC=${CC} MKDEP_CPP_OPTS="-M -DCRT_BEGIN" mkdep +INTERNALLIB= true all: ${OBJS} ${SOBJS} -.if ${TARGET_ARCH} == "alpha" -crtbegin.o crtbegin.So: crtbegin.s -crtend.o crtend.So: crtend.s -.for PART in begin end -CLEANFILES+= crt${PART}.s -crt${PART}.s: crt${PART}.asm - ln -sf ${.ALLSRC} ${.TARGET} -.endfor -.else crtbegin.o crtbegin.So crtend.o crtend.So: ${SRCS} -.endif crtbegin.o: ${CC} ${CFLAGS} -g0 -DCRT_BEGIN \ - -c -o ${.TARGET} ${UGLYHACK} ${.ALLSRC:N*.h} + -c -o ${.TARGET} ${.ALLSRC:N*.h} crtbegin.So: ${CC} ${CFLAGS} -g0 -DCRT_BEGIN ${CRTS_CFLAGS} \ - -c -o ${.TARGET} ${UGLYHACK} ${.ALLSRC:N*.h} + -c -o ${.TARGET} ${.ALLSRC:N*.h} crtend.o: ${CC} ${CFLAGS} -g0 -DCRT_END \ - -c -o ${.TARGET} ${UGLYHACK} ${.ALLSRC:N*.h} + -c -o ${.TARGET} ${.ALLSRC:N*.h} crtend.So: ${CC} ${CFLAGS} -g0 -DCRT_END ${CRTS_CFLAGS} \ - -c -o ${.TARGET} ${UGLYHACK} ${.ALLSRC:N*.h} + -c -o ${.TARGET} ${.ALLSRC:N*.h} -CLEANFILES+= tm.h -# KEEP THIS IN SYNC with src/gnu/usr.bin/cc/cc_tools/Makefile !! -tm.h: - echo '#include "gansidecl.h"' > ${.TARGET} - echo '#include "${MACHINE_ARCH}/${MACHINE_ARCH}.h"' >> ${.TARGET} -.if ${MACHINE_ARCH} == "i386" - echo '#include "${MACHINE_ARCH}/att.h"' >> ${.TARGET} -.endif - echo '#include ' >> ${.TARGET} - echo '#include ' >> ${.TARGET} -.if exists(${MACHINE_ARCH}/config/${MACHINE_ARCH}/elf.h) - echo '#include "${MACHINE_ARCH}/elf.h"' >> ${.TARGET} -.endif - echo '#include "${MACHINE_ARCH}/freebsd.h"' >> ${.TARGET} -.if ${MACHINE_ARCH} == "i386" - echo '#include "${MACHINE_ARCH}/perform.h"' >> ${.TARGET} -.endif - echo '#include "defaults.h"' >> ${.TARGET} - echo '#ifndef GENERATOR_FILE' >> ${.TARGET} - echo '#include "insn-codes.h"' >> ${.TARGET} - echo '#include "insn-flags.h"' >> ${.TARGET} - echo '#endif' >> ${.TARGET} +CLEANFILES= tconfig.h +tconfig.h: ${.CURDIR}/../../usr.bin/cc/cc_tools/Makefile + ${MAKE} -f ${.ALLSRC} MFILE=${.ALLSRC} ${.TARGET} realinstall: .for file in ${OBJS} ${SOBJS} -- cgit v1.3 From 0b3c5f4098d3281db2df25d255ae16ee4bcdcad1 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Fri, 5 Apr 2002 09:20:49 +0000 Subject: MFC: reorg. --- gnu/lib/libgcc/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gnu/lib') diff --git a/gnu/lib/libgcc/Makefile b/gnu/lib/libgcc/Makefile index 9e1294471ab17..974bc1a062352 100644 --- a/gnu/lib/libgcc/Makefile +++ b/gnu/lib/libgcc/Makefile @@ -18,17 +18,15 @@ INSTALL_PIC_ARCHIVE= yes CFLAGS+= -fexceptions CFLAGS+= -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED .if ${OBJFORMAT} != aout -#CFLAGS+= -fPIC -D_PTHREADS -DGTHREAD_USE_WEAK CFLAGS+= -D_PTHREADS -DGTHREAD_USE_WEAK .endif all: lib${LIB}.a +CLEANFILES+= lib${LIB}.a lib${LIB}.a: libgcc_build.a cp -p ${.ALLSRC} ${.TARGET} -CLEANFILES+= lib${LIB}.a - # # fake out to semi-follow what is done in GCC's Makefile.in # -- cgit v1.3 From 5d8d0d50cad1643b2a9f6cb88d609d8b7d7eb3e1 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Sat, 6 Apr 2002 19:13:25 +0000 Subject: Deal with new TarGeT-specific CRT files. (sparc64 introduced the first) --- gnu/lib/csu/Makefile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'gnu/lib') diff --git a/gnu/lib/csu/Makefile b/gnu/lib/csu/Makefile index 27412de8f668c..5e9a5999fe5af 100644 --- a/gnu/lib/csu/Makefile +++ b/gnu/lib/csu/Makefile @@ -3,20 +3,27 @@ GCCDIR= ${.CURDIR}/../../../contrib/gcc .PATH: ${GCCDIR} -SRCS= crtstuff.c tconfig.h +CCDIR= ${.CURDIR}/../../usr.bin/cc +.include "${CCDIR}/Makefile.tgt" +SRCS= crtstuff.c tconfig.h OBJS= crtbegin.o crtend.o SOBJS= crtbegin.So crtend.So CFLAGS+= -DIN_GCC -DHAVE_LD_EH_FRAME_HDR CFLAGS+= -finhibit-size-directive -fno-inline-functions \ -fno-exceptions -fno-omit-frame-pointer CFLAGS+= -I${GCCDIR}/config -I${GCCDIR} -I. \ - -I${.CURDIR}/../../usr.bin/cc/cc_tools + -I${CCDIR}/cc_tools CRTS_CFLAGS= -DCRTSTUFFS_O ${PICFLAG} MKDEPCMD= CC=${CC} MKDEP_CPP_OPTS="-M -DCRT_BEGIN" mkdep INTERNALLIB= true -all: ${OBJS} ${SOBJS} +.if ${TARGET_ARCH} == "sparc64" +.PATH: ${GCCDIR}/config/${GCC_CPU} +TGTOBJS= crtfastmath.o +.endif + +all: ${OBJS} ${SOBJS} ${TGTOBJS} crtbegin.o crtbegin.So crtend.o crtend.So: ${SRCS} @@ -37,11 +44,11 @@ crtend.So: -c -o ${.TARGET} ${.ALLSRC:N*.h} CLEANFILES= tconfig.h -tconfig.h: ${.CURDIR}/../../usr.bin/cc/cc_tools/Makefile +tconfig.h: ${CCDIR}/cc_tools/Makefile ${MAKE} -f ${.ALLSRC} MFILE=${.ALLSRC} ${.TARGET} realinstall: -.for file in ${OBJS} ${SOBJS} +.for file in ${OBJS} ${SOBJS} ${TGTOBJS} ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ ${file} ${DESTDIR}${LIBDIR}/${file:S/.So$/S.o/} .endfor -- cgit v1.3 From af968949b10123abc8886a7ce119cbe7eb78eaa4 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Sun, 7 Apr 2002 09:30:05 +0000 Subject: Bmake bits for GCC 3.1. Sponsored by: bribe from peter --- gnu/lib/libobjc/Makefile | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 gnu/lib/libobjc/Makefile (limited to 'gnu/lib') diff --git a/gnu/lib/libobjc/Makefile b/gnu/lib/libobjc/Makefile new file mode 100644 index 0000000000000..b3ffc0b24715d --- /dev/null +++ b/gnu/lib/libobjc/Makefile @@ -0,0 +1,42 @@ +# $FreeBSD$ + +OBJCDIR=${.CURDIR}/../../../contrib/libobjc +GCCDIR= ${.CURDIR}/../../../contrib/gcc + +.PATH: ${OBJCDIR}/objc ${OBJCDIR} + +LIB= objc +NOMAN= sorry +NOPIC= works but method lookup slowdown is significant + +SRCS= archive.c class.c encoding.c gc.c hash.c init.c misc.c \ + nil_method.c objects.c sarray.c selector.c sendmsg.c \ + thr.c thr-single.c \ + NXConstStr.m Object.m Protocol.m linking.m + +HDRS= encoding.h hash.h objc-api.h objc-list.h objc.h runtime.h \ + sarray.h thr.h typedstream.h NXConstStr.h Object.h Protocol.h + +CFLAGS+= -fgnu-runtime -DHAVE_GTHR_DEFAULT -DIN_TARGET_LIBS +CFLAGS+= -I. -I${.CURDIR}/../../usr.bin/cc/cc_tools +CFLAGS+= -I${OBJCDIR}/objc -I${OBJCDIR} +CFLAGS+= -I${GCCDIR}/config -I${GCCDIR} + +beforeinstall: + ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \ + ${HDRS:S;^;${OBJCDIR}/objc/;} ${DESTDIR}/usr/include/objc + +GENHDRS= runtime-info.h tconfig.h +CLEANFILES+= ${GENHDRS} +SRCS+= ${GENHDRS} + +${OBJS}: ${GENHDRS} + +runtime-info.h: + `${CC} --print-prog-name=cc1obj` -print-objc-runtime-info \ + < /dev/null > ${.TARGET} + +tconfig.h: ${.CURDIR}/../../usr.bin/cc/cc_tools/Makefile + ${MAKE} -f ${.ALLSRC} MFILE=${.ALLSRC} ${.TARGET} + +.include -- cgit v1.3 From bc2fcd34bc2669d7fcd94f69cb4305412a3f58c8 Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Mon, 6 May 2002 22:07:27 +0000 Subject: This commit was manufactured by cvs2svn to create branch 'WIP_GCC31'. --- gnu/lib/libsupc++/Makefile | 1 + 1 file changed, 1 insertion(+) create mode 100644 gnu/lib/libsupc++/Makefile (limited to 'gnu/lib') diff --git a/gnu/lib/libsupc++/Makefile b/gnu/lib/libsupc++/Makefile new file mode 100644 index 0000000000000..e8c0da7a1d7eb --- /dev/null +++ b/gnu/lib/libsupc++/Makefile @@ -0,0 +1 @@ +# $FreeBSD$ -- cgit v1.3 From df411a300f197f9e90f7df507d664853e72fc417 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Tue, 7 May 2002 00:08:30 +0000 Subject: Fix to work on sparc64 (which has an extra crt .o file). --- gnu/lib/csu/Makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'gnu/lib') diff --git a/gnu/lib/csu/Makefile b/gnu/lib/csu/Makefile index 5e9a5999fe5af..e4ba7191c0053 100644 --- a/gnu/lib/csu/Makefile +++ b/gnu/lib/csu/Makefile @@ -16,11 +16,12 @@ CFLAGS+= -I${GCCDIR}/config -I${GCCDIR} -I. \ -I${CCDIR}/cc_tools CRTS_CFLAGS= -DCRTSTUFFS_O ${PICFLAG} MKDEPCMD= CC=${CC} MKDEP_CPP_OPTS="-M -DCRT_BEGIN" mkdep -INTERNALLIB= true +NOLIB= true .if ${TARGET_ARCH} == "sparc64" .PATH: ${GCCDIR}/config/${GCC_CPU} -TGTOBJS= crtfastmath.o +TGTOBJS= crtfastmath.o +SRCS+= crtfastmath.c .endif all: ${OBJS} ${SOBJS} ${TGTOBJS} @@ -29,23 +30,23 @@ crtbegin.o crtbegin.So crtend.o crtend.So: ${SRCS} crtbegin.o: ${CC} ${CFLAGS} -g0 -DCRT_BEGIN \ - -c -o ${.TARGET} ${.ALLSRC:N*.h} + -c -o ${.TARGET} ${.ALLSRC:M*crtstuff*} crtbegin.So: ${CC} ${CFLAGS} -g0 -DCRT_BEGIN ${CRTS_CFLAGS} \ - -c -o ${.TARGET} ${.ALLSRC:N*.h} + -c -o ${.TARGET} ${.ALLSRC:M*crtstuff*} crtend.o: ${CC} ${CFLAGS} -g0 -DCRT_END \ - -c -o ${.TARGET} ${.ALLSRC:N*.h} + -c -o ${.TARGET} ${.ALLSRC:M*crtstuff*} crtend.So: ${CC} ${CFLAGS} -g0 -DCRT_END ${CRTS_CFLAGS} \ - -c -o ${.TARGET} ${.ALLSRC:N*.h} + -c -o ${.TARGET} ${.ALLSRC:M*crtstuff*} CLEANFILES= tconfig.h tconfig.h: ${CCDIR}/cc_tools/Makefile - ${MAKE} -f ${.ALLSRC} MFILE=${.ALLSRC} ${.TARGET} + ${MAKE} -f ${.ALLSRC} MFILE=${.ALLSRC} GCCDIR=${GCCDIR} ${.TARGET} realinstall: .for file in ${OBJS} ${SOBJS} ${TGTOBJS} -- cgit v1.3 From 4466867fd82c7e473073d4bb4fb30be07f6b7a88 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Tue, 7 May 2002 00:55:51 +0000 Subject: Update for GCC 3.1. Tested on: alpha, sparc64, i386 --- gnu/lib/libgcc/Makefile | 335 +++++++++++++++++++++++------------------------- 1 file changed, 161 insertions(+), 174 deletions(-) (limited to 'gnu/lib') diff --git a/gnu/lib/libgcc/Makefile b/gnu/lib/libgcc/Makefile index 974bc1a062352..e9a885b0251ec 100644 --- a/gnu/lib/libgcc/Makefile +++ b/gnu/lib/libgcc/Makefile @@ -1,182 +1,94 @@ # $FreeBSD$ -# ex:ts=8 -GCCDIR= ${.CURDIR}/../../../contrib/gcc +TARGET_ARCH?= ${MACHINE_ARCH} -.PATH: ${GCCDIR}/cp ${GCCDIR} +GCCDIR= ${.CURDIR}/../../../contrib/gcc +.PATH: ${GCCDIR}/config/${TARGET_ARCH} ${GCCDIR} # allow to be overridden for the a.out case .if !defined(LIB) || ${LIB} != "gcc_r" LIB= gcc .endif +SHLIB_MAJOR= 3.1 +SHLIB_MINOR= 0 + .if ${OBJFORMAT} == aout # Install libgcc_pic.a, since ld.so uses it. INSTALL_PIC_ARCHIVE= yes .endif -CFLAGS+= -fexceptions -CFLAGS+= -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -.if ${OBJFORMAT} != aout -CFLAGS+= -D_PTHREADS -DGTHREAD_USE_WEAK -.endif - -all: lib${LIB}.a - -CLEANFILES+= lib${LIB}.a -lib${LIB}.a: libgcc_build.a - cp -p ${.ALLSRC} ${.TARGET} - # -# fake out to semi-follow what is done in GCC's Makefile.in +# XXX This is a hack, but it seems to work. +# libgcc2.a is meant to be compiled by *this* version of gcc. # -srcdir= ${GCCDIR} -GCC_FOR_TARGET= ${CC} -LIBGCC2_CFLAGS= ${CFLAGS} -INCLUDES= -I${GCCDIR}/config \ - -I${GCCDIR} \ - -I. \ - -I${.CURDIR}/../../usr.bin/cc/cc_tools - -COMMONHDRS= config.h tconfig.h tm.h -CLEANFILES+= ${COMMONHDRS} -SRCS+= ${COMMONHDRS} +# Normally, this does not make any difference, since we only have gcc, but +# when bootstrapping from gcc-2.6.3, we have to use the freshly built 2.7.2 +# compiler for some of the libgcc2.c __attribute__ stuff. +# +# We now depend on a bootstrap pass (normally in `make world') to build +# and install the new version of gcc before we get here. This makes +# finding the new version (XCC) easy but may break finding the old version +# (CC). +# +XCC= ${CC} +XCXX= ${CXX} -config.h: - echo '#include "auto-host.h"' > ${.TARGET} - echo '#include "gansidecl.h"' >> ${.TARGET} - echo '#include <${MACHINE_ARCH}/xm-${MACHINE_ARCH}.h>' >> ${.TARGET} - echo '#include ' >> ${.TARGET} - echo '#include "defaults.h"' >> ${.TARGET} - echo '#include "hwint.h"' >> ${.TARGET} - echo '#ifndef POSIX' >> ${.TARGET} - echo '# define POSIX' >> ${.TARGET} - echo '#endif' >> ${.TARGET} - - -tconfig.h: - echo '#include "gansidecl.h"' > ${.TARGET} - echo '#include "${MACHINE_ARCH}/xm-${MACHINE_ARCH}.h"' >> ${.TARGET} - echo '#include "defaults.h"' >> ${.TARGET} - - -# KEEP THIS IN SYNC with src/gcc/usr.bin/cc/cc_tools/Makefile !! -tm.h: - echo '#include "gansidecl.h"' > ${.TARGET} - echo '#include "${MACHINE_ARCH}/${MACHINE_ARCH}.h"' >> ${.TARGET} -.if ${MACHINE_ARCH} == "i386" - echo '#include "${MACHINE_ARCH}/att.h"' >> ${.TARGET} -.endif - echo '#include ' >> ${.TARGET} - echo '#include ' >> ${.TARGET} -.if exists(${MACHINE_ARCH}/config/${MACHINE_ARCH}/elf.h) - echo '#include "${MACHINE_ARCH}/elf.h"' >> ${.TARGET} + +CFLAGS+= -fexceptions +CFLAGS+= -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED \ + -DFINE_GRAINED_LIBRARIES +.if ${OBJFORMAT} != aout +CFLAGS+= -D_PTHREADS -DGTHREAD_USE_WEAK .endif - echo '#include "${MACHINE_ARCH}/freebsd.h"' >> ${.TARGET} -.if ${MACHINE_ARCH} == "i386" - echo '#include "${MACHINE_ARCH}/perform.h"' >> ${.TARGET} +CFLAGS+= -I${.CURDIR}/../../usr.bin/cc/cc_tools \ + -I${GCCDIR}/config -I${GCCDIR} -I. + +# Remove any objects from LIB2FUNCS and LIB2_DIVMOD_FUNCS that are +# defined as optimized assembly code in LIB1ASMFUNCS. +.if defined(LIB1ASMFUNCS) +.for sym in ${LIB1ASMFUNCS} +LIB2FUNCS_1= ${LIB2FUNCS_1:S/${sym}//g} +LIB2FUNCS_2= ${LIB2FUNCS_2:S/${sym}//g} +LIB2_DIVMOD_FUNCS= ${LIB2_DIVMOD_FUNCS:S/${sym}//g} +.endfor .endif - echo '#include "defaults.h"' >> ${.TARGET} - -# -# XXX Make sure changes in GCC's Makefile.in are synced here !! -# - -libgcc_build.a: ${COMMONHDRS} libgcc.mk - $(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \ - AR_FOR_TARGET="ar" \ - AR_CREATE_FOR_TARGET="ar rc" \ - AR_FLAGS_FOR_TARGET="" \ - OLDCC="${CC}" CCLIBFLAGS="-O" \ - CFLAGS="$(CFLAGS) $(WARN_CFLAGS)" \ - RANLIB_FOR_TARGET="ranlib" \ - RANLIB_TEST_FOR_TARGET="true" \ - NM_FOR_TARGET="nm" AWK="awk" \ - LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)" \ - INCLUDES="$(INCLUDES)" MAYBE_USE_COLLECT2="$(MAYBE_USE_COLLECT2)" \ - CONFIG_H="${COMMONHDRS}" MACHMODE_H="$(MACHMODE_H)" \ - LIB1ASMSRC='$(LIB1ASMSRC)' \ - -f libgcc.mk ./libgcc_build.a +SYMS= ${LIB1ASMFUNCS} \ + ${LIB2FUNCS_1} \ + ${LIB2FUNCS_2} \ + ${LIB2_DIVMOD_FUNCS} +.if ${TARGET_ARCH} == "arm" || ${TARGET_ARCH} == "powerpc" || ${TARGET_ARCH} == "sparc64" +SYMS+= ${FPBIT_FUNCS} ${DPBIT_FUNCS} +.endif +SYMS_ST= ${LIB2FUNCS_ST} \ + ${LIB2ADD_ST} +OBJS_T= ${SYMS:S/$/.o/} ${SYMS_ST:S/$/.o/} +OBJS_P= ${SYMS:S/$/.po/} ${SYMS_ST:S/$/.po/} +OBJS_S= ${SYMS:S/$/.So/} +OBJS= ${SYMS:S/$/.o/} +STATICOBJS= ${SYMS_ST:S/$/.o/} +SRCS= ${LIB2ADD} ${LIB2ADDEH} -# -# XXX Make sure changes in GCC's Makefile.in are synced here !! -# -libgcc.mk: mklibgcc - objext='.o' \ - OLDCC='${CC}' \ - LIBGCC1='libgcc1.a' \ - LIB1FUNCS='$(LIB1FUNCS)' \ - LIB1ASMFUNCS='$(LIB1ASMFUNCS)' \ - LIB1FUNCS_EXTRA='$(LIB1FUNCS_EXTRA)' \ - LIB2FUNCS='$(LIB2FUNCS)' \ - LIB2FUNCS_ST='$(LIB2FUNCS_ST)' \ - LIB2ADD='$(LIB2ADD)' \ - LIB2ADDEH='$(LIB2ADDEH)' \ - LIB2ADDEHDEP='$(LIB2ADDEHDEP)' \ - LIB2ADD_ST='$(LIB2ADD_ST)' \ - FPBIT='$(FPBIT)' \ - FPBIT_FUNCS='$(FPBIT_FUNCS)' \ - DPBIT='$(DPBIT)' \ - DPBIT_FUNCS='$(DPBIT_FUNCS)' \ - MULTILIBS='.;' \ - EXTRA_MULTILIB_PARTS='$(EXTRA_MULTILIB_PARTS)' \ - SHLIB_LINK='$(SHLIB_LINK)' \ - SHLIB_INSTALL='$(SHLIB_INSTALL)' \ - SHLIB_EXT='$(SHLIB_EXT)' \ - SHLIB_MULTILIB='$(SHLIB_MULTILIB)' \ - SHLIB_MKMAP='$(SHLIB_MKMAP)' \ - SHLIB_MAPFILES='$(SHLIB_MAPFILES)' \ - SHLIB_NM_FLAGS='$(SHLIB_NM_FLAGS)' \ - $(SHELL) mklibgcc > tmp-libgcc.mk - echo ".PATH: ${GCCDIR}" > ${.TARGET} - sed -e 's|libgcc/\./||g' tmp-libgcc.mk >> ${.TARGET} - rm tmp-libgcc.mk - touch config.status stmp-int-hdrs - -mklibgcc: mklibgcc.in - sed \ - -e 's|libgcc\.a|libgcc_build.a|g' \ - -e 's|@srcdir@|${GCCDIR}|g' \ - -e 's|@build_canonical@|${MACHINE_ARCH}-deo-freebsd5.0|g' \ - -e 's|@target@|${MACHINE_ARCH}-deo-freebsd5.0|g' \ - -e 's|@enable_shared@|no|g' \ - -e 's|@NO_MINUS_C_MINUS_O@||g' \ - ${.ALLSRC} > ${.TARGET} - -CLEANFILES+= mklibgcc libgcc.mk config.status \ - stmp-int-hdrs tmp-libgcc.mk stmp-dirs \ - libgcc_build.a +#--------------------------------------------------------------------------- # -# XXX This is a hack, but it seems to work. # When upgrading GCC, get the following defintions straight from Makefile.in # -# Members of libgcc1.a. -LIB1FUNCS = _mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3 \ - _lshrsi3 _ashrsi3 _ashlsi3 \ - _divdf3 _muldf3 _negdf2 _adddf3 _subdf3 \ - _fixdfsi _fixsfsi _floatsidf _floatsisf _truncdfsf2 _extendsfdf2 \ - _addsf3 _negsf2 _subsf3 _mulsf3 _divsf3 \ - _eqdf2 _nedf2 _gtdf2 _gedf2 _ltdf2 _ledf2 \ - _eqsf2 _nesf2 _gtsf2 _gesf2 _ltsf2 _lesf2 - # Library members defined in libgcc2.c. -LIB2FUNCS = _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 \ - _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _clz \ - _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf \ - _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi \ - _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi \ - _fixtfdi _fixunstfdi _floatditf \ - _clear_cache _trampoline __main _exit \ - _absvsi2 _absvdi2 _addvsi3 _addvdi3 _subvsi3 _subvdi3 \ - _mulvsi3 _mulvdi3 _negvsi2 _negvdi2 \ - _ctors +# Variable length limited to 255 charactes when passed to a shell script. +LIB2FUNCS_1 = _muldi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _clz \ + _cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi _fixunssfsi \ + _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi + +LIB2FUNCS_2 = _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf \ + _clear_cache _trampoline __main _exit _absvsi2 _absvdi2 _addvsi3 \ + _addvdi3 _subvsi3 _subvdi3 _mulvsi3 _mulvdi3 _negvsi2 _negvdi2 _ctors # Defined in libgcc2.c, included only in the static library. -LIB2FUNCS_ST = _eprintf _bb __gcc_bcmp +LIB2FUNCS_ST = _eprintf _bb __gcc_bcmp FPBIT_FUNCS = _pack_sf _unpack_sf _addsub_sf _mul_sf _div_sf \ _fpcmp_parts_sf _compare_sf _eq_sf _ne_sf _gt_sf _ge_sf \ @@ -188,41 +100,116 @@ DPBIT_FUNCS = _pack_df _unpack_df _addsub_df _mul_df _div_df \ _lt_df _le_df _unord_df _si_to_df _df_to_si _negate_df _make_df \ _df_to_sf _thenan_df _df_to_usi _usi_to_df -# Build libgcc.a. +# These might cause a divide overflow trap and so are compiled with +# unwinder info. +LIB2_DIVMOD_FUNCS = _divdi3 _moddi3 _udivdi3 _umoddi3 _udiv_w_sdiv _udivmoddi4 + +MACHMODE_H = machmode.h machmode.def + LIB2ADD = $(LIB2FUNCS_EXTRA) LIB2ADD_ST = $(LIB2FUNCS_STATIC_EXTRA) # Additional sources to handle exceptions; overridden on ia64. -LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \ - $(srcdir)/unwind-sjlj.c -LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h - -MACHMODE_H = machmode.h machmode.def - -# nm flags to list global symbols in libgcc object files. -SHLIB_NM_FLAGS = -pg +LIB2ADDEH = unwind-dw2.c unwind-dw2-fde.c unwind-sjlj.c +#----------------------------------------------------------------------- # -# Bmake'ed tweaks for the GCC Makefile.in barrowed bits. +# Platform specific bits. +# When upgrading GCC, get the following defintions from config//t-* # -.for objfile in ${LIB1FUNCS} ${LIB2FUNCS} ${LIB2FUNCS_ST} ${FPBIT_FUNCS} \ - ${DPBIT_FUNCS} -CLEANFILES+= ${objfile}.o -.endfor +.if ${TARGET_ARCH} == "alpha" +# from config/alpha/t-alpha +LIB2FUNCS_EXTRA = qrnnd.asm +.endif -CLEANFILES+= ${LIB2ADDEH:S/.c/.o/g:S/$(srcdir)\///g} +.if ${TARGET_ARCH} == "arm" +# from config/arm/t-strongarm-elf +LIB1ASMSRC = arm/lib1funcs.asm +LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func +# We want fine grained libraries, so use the new code to build the +# floating point emulation libraries. +XXX fix this +NEED_FP_EMULATION set to "yes" with different rules per platform +.endif -CLEANDIRS+= libgcc +.if ${TARGET_ARCH} == "ia64" +# from config/ia64/t-ia64 +LIB1ASMSRC = ia64/lib1funcs.asm +LIB1ASMFUNCS = __divtf3 __divdf3 __divsf3 \ + __divdi3 __moddi3 __udivdi3 __umoddi3 \ + __divsi3 __modsi3 __udivsi3 __umodsi3 __save_stack_nonlocal \ + __nonlocal_goto __restore_stack_nonlocal __trampoline +LIB2ADDEH = unwind-ia64.c unwind-sjlj.c +.endif -# -# Need to supply an `install' target as we aren't using bsd.lib.mk. -# +.if ${TARGET_ARCH} == "powerpc" +# from config/rs6000/t-ppccomm +LIB2FUNCS_EXTRA = tramp.S +# This one can't end up in shared libgcc +LIB2FUNCS_STATIC_EXTRA = eabi.S +# We want fine grained libraries, so use the new code to build the +# floating point emulation libraries. +XXX fix this +NEED_FP_EMULATION set to "yes" with different rules per platform +OBJS+= dp-bit.o fp-bit.o +.endif + +.if ${TARGET_ARCH} == "sparc64" +# from config/sparc/t-elf +# We want fine grained libraries, so use the new code to build the +# floating point emulation libraries. +LIB1ASMSRC = sparc/lb1spc.asm +LIB1ASMFUNCS = _mulsi3 _divsi3 _modsi3 +OBJS+= dp-bit.o fp-bit.o +.endif + +dp-bit.o: config/fp-bit.c + ${XCC} -c ${CFLAGS} -o ${.TARGET} ${.ALLSRC:M*fp-bit*} -install: - ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ - ${_INSTALLFLAGS} lib${LIB}.a ${DESTDIR}${LIBDIR} +dp-bit.So: config/fp-bit.c + ${XCC} ${PICFLAG} -c ${CFLAGS} -o ${.TARGET} ${.ALLSRC:M*fp-bit*} + +dp-bit.po: config/fp-bit.c + ${XCC} -p -c ${CFLAGS} -o ${.TARGET} ${.ALLSRC:M*fp-bit*} + +fp-bit.o: config/fp-bit.c + ${XCC} -DFLOAT=1 -c ${CFLAGS} -o ${.TARGET} ${.ALLSRC:M*fp-bit*} + +fp-bit.So: config/fp-bit.c + ${XCC} ${PICFLAG} -DFLOAT=1 -c ${CFLAGS} -o ${.TARGET} ${.ALLSRC:M*fp-bit*} + +fp-bit.po: config/fp-bit.c + ${XCC} -p -DFLOAT=1 -c ${CFLAGS} -o ${.TARGET} ${.ALLSRC:M*fp-bit*} + +#----------------------------------------------------------------------- + +COMMONHDRS= tconfig.h +SRCS+= ${COMMONHDRS} +CLEANFILES+= ${COMMONHDRS} + +tconfig.h: ${.CURDIR}/../../usr.bin/cc/cc_tools/Makefile + ${MAKE} -f ${.ALLSRC} MFILE=${.ALLSRC} GCCDIR=${GCCDIR} ${.TARGET} + +${OBJS} beforedepend: ${COMMONHDRS} + +${OBJS_T}: libgcc2.c + ${XCC} -c ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${.ALLSRC:M*.c} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} + +.if !defined(NOPIC) +${OBJS_S}: libgcc2.c + ${XCC} -c ${PICFLAG} ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${.ALLSRC:M*.c} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} +.endif + +.if !defined(NOPROFILE) +${OBJS_P}: libgcc2.c + ${XCC} -c -p ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${.ALLSRC:M*.c} + @${LD} -o ${.TARGET}.tmp -X -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} +.endif -.include -.include -.include +.include -- cgit v1.3 From ae889c62a2ab4c95f87bea4a4e826b1d566ffb1a Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Tue, 7 May 2002 00:58:49 +0000 Subject: Dependencies on tconfig.h work better if we set GCCDIR when shelling to other Makefiles. --- gnu/lib/libobjc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/lib') diff --git a/gnu/lib/libobjc/Makefile b/gnu/lib/libobjc/Makefile index b3ffc0b24715d..65c5c639011ea 100644 --- a/gnu/lib/libobjc/Makefile +++ b/gnu/lib/libobjc/Makefile @@ -37,6 +37,6 @@ runtime-info.h: < /dev/null > ${.TARGET} tconfig.h: ${.CURDIR}/../../usr.bin/cc/cc_tools/Makefile - ${MAKE} -f ${.ALLSRC} MFILE=${.ALLSRC} ${.TARGET} + ${MAKE} -f ${.ALLSRC} MFILE=${.ALLSRC} GCCDIR=${GCCDIR} ${.TARGET} .include -- cgit v1.3 From 68866c8c5bed42344c2a137f4f2af45fda3d07c3 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Tue, 7 May 2002 01:01:38 +0000 Subject: Mostly filled in contents for GCC 3.1. Bribed by: peter --- gnu/lib/libsupc++/Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu/lib') diff --git a/gnu/lib/libsupc++/Makefile b/gnu/lib/libsupc++/Makefile index e8c0da7a1d7eb..a35befcd10afe 100644 --- a/gnu/lib/libsupc++/Makefile +++ b/gnu/lib/libsupc++/Makefile @@ -1 +1,28 @@ # $FreeBSD$ + +SRCDIR= ${.CURDIR}/../../../contrib/libstdc++-v3 +.PATH: ${SRCDIR} ${SRCDIR}/../../gcc + +LIB= stdc++ +SRCS= del_op.cc del_opnt.cc del_opv.cc del_opvnt.cc \ + eh_alloc.cc eh_aux_runtime.cc eh_catch.cc eh_exception.cc \ + eh_globals.cc eh_personality.cc eh_terminate.cc eh_throw.cc eh_type.cc \ + new_handler.cc new_op.cc new_opnt.cc new_opv.cc new_opvnt.cc \ + pure.cc tinfo.cc tinfo2.cc vec.cc + +# from libiberty: +SRCS+= cp-demangle.c dyn-string.c + +CFLAGS+= -DIN_GLIBCPP_V3 -DHAVE_CONFIG_H +CFLAGS+= -I${SRCDIR}/../../gcc +CXXFLAGS+= -nostdinc++ \ + -fno-implicit-templates -ffunction-sections -fdata-sections + +HDRS= exception new typeinfo cxxabi.h exception_defines.h + +beforeinstall: + ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \ + ${HDRS:S;^;${SRCDIR}/;} \ + ${DESTDIR}/usr/include/g++-v3 + +.include -- cgit v1.3 From a7b4ff14b9b34317e9421f4b58751bea559dd649 Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Tue, 7 May 2002 01:03:52 +0000 Subject: This commit was manufactured by cvs2svn to create branch 'WIP_GCC31'. --- gnu/lib/libstdc++/config.h | 1 + 1 file changed, 1 insertion(+) create mode 100644 gnu/lib/libstdc++/config.h (limited to 'gnu/lib') diff --git a/gnu/lib/libstdc++/config.h b/gnu/lib/libstdc++/config.h new file mode 100644 index 0000000000000..da23dbe43a4f6 --- /dev/null +++ b/gnu/lib/libstdc++/config.h @@ -0,0 +1 @@ +/* $FreeBSD$ */ -- cgit v1.3 From ca15bbbfe3b55770885bbae9ef00b9674a078f24 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Tue, 7 May 2002 01:13:32 +0000 Subject: Fill in the missing. Bribed by: peter --- gnu/lib/libstdc++/config.h | 1075 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1075 insertions(+) (limited to 'gnu/lib') diff --git a/gnu/lib/libstdc++/config.h b/gnu/lib/libstdc++/config.h index da23dbe43a4f6..645d0ac5c0d9e 100644 --- a/gnu/lib/libstdc++/config.h +++ b/gnu/lib/libstdc++/config.h @@ -1 +1,1076 @@ /* $FreeBSD$ */ + +/* config.h. Generated automatically by configure. */ +/* config.h.in. Generated automatically from configure.in by autoheader. */ + +/* Define if you have a working `mmap' system call. */ +#define HAVE_MMAP 1 + +// Define if GCC supports weak symbols. +#define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__ + +// Define if gthr-default.h exists (meaning that threading support is enabled). +#define HAVE_GTHR_DEFAULT 1 + +// Include I/O support for 'long long' and 'unsigned long long'. +#define _GLIBCPP_USE_LONG_LONG 1 + +// Define if C99 features such as lldiv_t, llabs, lldiv should be exposed. +/* #undef _GLIBCPP_USE_C99 */ + +// Define if code specialized for wchar_t should be used. +/* #undef _GLIBCPP_USE_WCHAR_T */ + +// Define if using setrlimit to limit memory usage during 'make check'. +/* #undef _GLIBCPP_MEM_LIMITS */ + +// Define to use concept checking code from the boost libraries. +/* #undef _GLIBCPP_CONCEPT_CHECKS */ + +// Define if mbstate_t exists in wchar.h. +#define HAVE_MBSTATE_T 1 + +// Define if you have the modff function. +#define HAVE_MODFF 1 + +// Define if you have the modfl function. +/* #undef HAVE_MODFL */ + +// Define if you have the expf function. +#define HAVE_EXPF 1 + +// Define if you have the expl function. +/* #undef HAVE_EXPL */ + +// Define if you have the hypotf function. +#define HAVE_HYPOTF 1 + +// Define if you have the hypotl function. +/* #undef HAVE_HYPOTL */ + +// Define if the compiler/host combination has __builtin_abs +#define HAVE___BUILTIN_ABS 1 + +// Define if the compiler/host combination has __builtin_labs +#define HAVE___BUILTIN_LABS 1 + +// Define if the compiler/host combination has __builtin_cos +/* #undef HAVE___BUILTIN_COS */ + +// Define if the compiler/host combination has __builtin_cosf +/* #undef HAVE___BUILTIN_COSF */ + +// Define if the compiler/host combination has __builtin_cosl +/* #undef HAVE___BUILTIN_COSL */ + +// Define if the compiler/host combination has __builtin_fabs +#define HAVE___BUILTIN_FABS 1 + +// Define if the compiler/host combination has __builtin_fabsf +#define HAVE___BUILTIN_FABSF 1 + +// Define if the compiler/host combination has __builtin_fabsl +#define HAVE___BUILTIN_FABSL 1 + +// Define if the compiler/host combination has __builtin_sin +/* #undef HAVE___BUILTIN_SIN */ + +// Define if the compiler/host combination has __builtin_sinf +/* #undef HAVE___BUILTIN_SINF */ + +// Define if the compiler/host combination has __builtin_sinl +/* #undef HAVE___BUILTIN_SINL */ + +// Define if the compiler/host combination has __builtin_sqrt +/* #undef HAVE___BUILTIN_SQRT */ + +// Define if the compiler/host combination has __builtin_sqrtf +/* #undef HAVE___BUILTIN_SQRTF */ + +// Define if the compiler/host combination has __builtin_sqrtl +/* #undef HAVE___BUILTIN_SQRTL */ + +// Define if LC_MESSAGES is available in . +#define HAVE_LC_MESSAGES 1 + +/* Define if you have the __signbit function. */ +/* #undef HAVE___SIGNBIT */ + +/* Define if you have the __signbitf function. */ +/* #undef HAVE___SIGNBITF */ + +/* Define if you have the __signbitl function. */ +/* #undef HAVE___SIGNBITL */ + +/* Define if you have the _acosf function. */ +/* #undef HAVE__ACOSF */ + +/* Define if you have the _acosl function. */ +/* #undef HAVE__ACOSL */ + +/* Define if you have the _asinf function. */ +/* #undef HAVE__ASINF */ + +/* Define if you have the _asinl function. */ +/* #undef HAVE__ASINL */ + +/* Define if you have the _atan2f function. */ +/* #undef HAVE__ATAN2F */ + +/* Define if you have the _atan2l function. */ +/* #undef HAVE__ATAN2L */ + +/* Define if you have the _atanf function. */ +/* #undef HAVE__ATANF */ + +/* Define if you have the _atanl function. */ +/* #undef HAVE__ATANL */ + +/* Define if you have the _ceilf function. */ +/* #undef HAVE__CEILF */ + +/* Define if you have the _ceill function. */ +/* #undef HAVE__CEILL */ + +/* Define if you have the _copysign function. */ +/* #undef HAVE__COPYSIGN */ + +/* Define if you have the _copysignl function. */ +/* #undef HAVE__COPYSIGNL */ + +/* Define if you have the _cosf function. */ +/* #undef HAVE__COSF */ + +/* Define if you have the _coshf function. */ +/* #undef HAVE__COSHF */ + +/* Define if you have the _coshl function. */ +/* #undef HAVE__COSHL */ + +/* Define if you have the _cosl function. */ +/* #undef HAVE__COSL */ + +/* Define if you have the _expf function. */ +/* #undef HAVE__EXPF */ + +/* Define if you have the _expl function. */ +/* #undef HAVE__EXPL */ + +/* Define if you have the _fabsf function. */ +/* #undef HAVE__FABSF */ + +/* Define if you have the _fabsl function. */ +/* #undef HAVE__FABSL */ + +/* Define if you have the _finite function. */ +/* #undef HAVE__FINITE */ + +/* Define if you have the _finitef function. */ +/* #undef HAVE__FINITEF */ + +/* Define if you have the _finitel function. */ +/* #undef HAVE__FINITEL */ + +/* Define if you have the _floorf function. */ +/* #undef HAVE__FLOORF */ + +/* Define if you have the _floorl function. */ +/* #undef HAVE__FLOORL */ + +/* Define if you have the _fmodf function. */ +/* #undef HAVE__FMODF */ + +/* Define if you have the _fmodl function. */ +/* #undef HAVE__FMODL */ + +/* Define if you have the _fpclass function. */ +/* #undef HAVE__FPCLASS */ + +/* Define if you have the _frexpf function. */ +/* #undef HAVE__FREXPF */ + +/* Define if you have the _frexpl function. */ +/* #undef HAVE__FREXPL */ + +/* Define if you have the _hypot function. */ +/* #undef HAVE__HYPOT */ + +/* Define if you have the _hypotf function. */ +/* #undef HAVE__HYPOTF */ + +/* Define if you have the _hypotl function. */ +/* #undef HAVE__HYPOTL */ + +/* Define if you have the _isinf function. */ +/* #undef HAVE__ISINF */ + +/* Define if you have the _isinff function. */ +/* #undef HAVE__ISINFF */ + +/* Define if you have the _isinfl function. */ +/* #undef HAVE__ISINFL */ + +/* Define if you have the _isnan function. */ +/* #undef HAVE__ISNAN */ + +/* Define if you have the _isnanf function. */ +/* #undef HAVE__ISNANF */ + +/* Define if you have the _isnanl function. */ +/* #undef HAVE__ISNANL */ + +/* Define if you have the _ldexpf function. */ +/* #undef HAVE__LDEXPF */ + +/* Define if you have the _ldexpl function. */ +/* #undef HAVE__LDEXPL */ + +/* Define if you have the _log10f function. */ +/* #undef HAVE__LOG10F */ + +/* Define if you have the _log10l function. */ +/* #undef HAVE__LOG10L */ + +/* Define if you have the _logf function. */ +/* #undef HAVE__LOGF */ + +/* Define if you have the _logl function. */ +/* #undef HAVE__LOGL */ + +/* Define if you have the _modff function. */ +/* #undef HAVE__MODFF */ + +/* Define if you have the _modfl function. */ +/* #undef HAVE__MODFL */ + +/* Define if you have the _powf function. */ +/* #undef HAVE__POWF */ + +/* Define if you have the _powl function. */ +/* #undef HAVE__POWL */ + +/* Define if you have the _qfpclass function. */ +/* #undef HAVE__QFPCLASS */ + +/* Define if you have the _sincos function. */ +/* #undef HAVE__SINCOS */ + +/* Define if you have the _sincosf function. */ +/* #undef HAVE__SINCOSF */ + +/* Define if you have the _sincosl function. */ +/* #undef HAVE__SINCOSL */ + +/* Define if you have the _sinf function. */ +/* #undef HAVE__SINF */ + +/* Define if you have the _sinhf function. */ +/* #undef HAVE__SINHF */ + +/* Define if you have the _sinhl function. */ +/* #undef HAVE__SINHL */ + +/* Define if you have the _sinl function. */ +/* #undef HAVE__SINL */ + +/* Define if you have the _sqrtf function. */ +/* #undef HAVE__SQRTF */ + +/* Define if you have the _sqrtl function. */ +/* #undef HAVE__SQRTL */ + +/* Define if you have the _tanf function. */ +/* #undef HAVE__TANF */ + +/* Define if you have the _tanhf function. */ +/* #undef HAVE__TANHF */ + +/* Define if you have the _tanhl function. */ +/* #undef HAVE__TANHL */ + +/* Define if you have the _tanl function. */ +/* #undef HAVE__TANL */ + +/* Define if you have the acosf function. */ +#define HAVE_ACOSF 1 + +/* Define if you have the acosl function. */ +/* #undef HAVE_ACOSL */ + +/* Define if you have the asinf function. */ +#define HAVE_ASINF 1 + +/* Define if you have the asinl function. */ +/* #undef HAVE_ASINL */ + +/* Define if you have the atan2f function. */ +#define HAVE_ATAN2F 1 + +/* Define if you have the atan2l function. */ +/* #undef HAVE_ATAN2L */ + +/* Define if you have the atanf function. */ +#define HAVE_ATANF 1 + +/* Define if you have the atanl function. */ +/* #undef HAVE_ATANL */ + +/* Define if you have the btowc function. */ +/* #undef HAVE_BTOWC */ + +/* Define if you have the ceilf function. */ +#define HAVE_CEILF 1 + +/* Define if you have the ceill function. */ +/* #undef HAVE_CEILL */ + +/* Define if you have the copysign function. */ +#define HAVE_COPYSIGN 1 + +/* Define if you have the copysignf function. */ +#define HAVE_COPYSIGNF 1 + +/* Define if you have the copysignl function. */ +/* #undef HAVE_COPYSIGNL */ + +/* Define if you have the cosf function. */ +#define HAVE_COSF 1 + +/* Define if you have the coshf function. */ +#define HAVE_COSHF 1 + +/* Define if you have the coshl function. */ +/* #undef HAVE_COSHL */ + +/* Define if you have the cosl function. */ +/* #undef HAVE_COSL */ + +/* Define if you have the drand48 function. */ +#define HAVE_DRAND48 1 + +/* Define if you have the expf function. */ +#define HAVE_EXPF 1 + +/* Define if you have the expl function. */ +/* #undef HAVE_EXPL */ + +/* Define if you have the fabsf function. */ +#define HAVE_FABSF 1 + +/* Define if you have the fabsl function. */ +/* #undef HAVE_FABSL */ + +/* Define if you have the fgetwc function. */ +/* #undef HAVE_FGETWC */ + +/* Define if you have the fgetws function. */ +/* #undef HAVE_FGETWS */ + +/* Define if you have the finite function. */ +#define HAVE_FINITE 1 + +/* Define if you have the finitef function. */ +#define HAVE_FINITEF 1 + +/* Define if you have the finitel function. */ +/* #undef HAVE_FINITEL */ + +/* Define if you have the floorf function. */ +#define HAVE_FLOORF 1 + +/* Define if you have the floorl function. */ +/* #undef HAVE_FLOORL */ + +/* Define if you have the fmodf function. */ +#define HAVE_FMODF 1 + +/* Define if you have the fmodl function. */ +/* #undef HAVE_FMODL */ + +/* Define if you have the fpclass function. */ +/* #undef HAVE_FPCLASS */ + +/* Define if you have the fputwc function. */ +/* #undef HAVE_FPUTWC */ + +/* Define if you have the fputws function. */ +/* #undef HAVE_FPUTWS */ + +/* Define if you have the frexpf function. */ +#define HAVE_FREXPF 1 + +/* Define if you have the frexpl function. */ +/* #undef HAVE_FREXPL */ + +/* Define if you have the fwide function. */ +/* #undef HAVE_FWIDE */ + +/* Define if you have the fwprintf function. */ +/* #undef HAVE_FWPRINTF */ + +/* Define if you have the fwscanf function. */ +/* #undef HAVE_FWSCANF */ + +/* Define if you have the getpagesize function. */ +#define HAVE_GETPAGESIZE 1 + +/* Define if you have the getwc function. */ +/* #undef HAVE_GETWC */ + +/* Define if you have the getwchar function. */ +/* #undef HAVE_GETWCHAR */ + +/* Define if you have the hypot function. */ +#define HAVE_HYPOT 1 + +/* Define if you have the hypotf function. */ +#define HAVE_HYPOTF 1 + +/* Define if you have the hypotl function. */ +/* #undef HAVE_HYPOTL */ + +/* Define if you have the iconv function. */ +/* #undef HAVE_ICONV */ + +/* Define if you have the iconv_close function. */ +/* #undef HAVE_ICONV_CLOSE */ + +/* Define if you have the iconv_open function. */ +/* #undef HAVE_ICONV_OPEN */ + +/* Define if you have the isinf function. */ +#define HAVE_ISINF 1 + +/* Define if you have the isinff function. */ +/* #undef HAVE_ISINFF */ + +/* Define if you have the isinfl function. */ +/* #undef HAVE_ISINFL */ + +/* Define if you have the isnan function. */ +#define HAVE_ISNAN 1 + +/* Define if you have the isnanf function. */ +#define HAVE_ISNANF 1 + +/* Define if you have the isnanl function. */ +/* #undef HAVE_ISNANL */ + +/* Define if you have the ldexpf function. */ +#define HAVE_LDEXPF 1 + +/* Define if you have the ldexpl function. */ +/* #undef HAVE_LDEXPL */ + +/* Define if you have the log10f function. */ +#define HAVE_LOG10F 1 + +/* Define if you have the log10l function. */ +/* #undef HAVE_LOG10L */ + +/* Define if you have the logf function. */ +#define HAVE_LOGF 1 + +/* Define if you have the logl function. */ +/* #undef HAVE_LOGL */ + +/* Define if you have the mbrlen function. */ +/* #undef HAVE_MBRLEN */ + +/* Define if you have the mbrtowc function. */ +/* #undef HAVE_MBRTOWC */ + +/* Define if you have the mbsinit function. */ +/* #undef HAVE_MBSINIT */ + +/* Define if you have the mbsrtowcs function. */ +/* #undef HAVE_MBSRTOWCS */ + +/* Define if you have the modff function. */ +#define HAVE_MODFF 1 + +/* Define if you have the modfl function. */ +/* #undef HAVE_MODFL */ + +/* Define if you have the nan function. */ +/* #undef HAVE_NAN */ + +/* Define if you have the nl_langinfo function. */ +#define HAVE_NL_LANGINFO 1 + +/* Define if you have the powf function. */ +#define HAVE_POWF 1 + +/* Define if you have the powl function. */ +/* #undef HAVE_POWL */ + +/* Define if you have the putwc function. */ +/* #undef HAVE_PUTWC */ + +/* Define if you have the putwchar function. */ +/* #undef HAVE_PUTWCHAR */ + +/* Define if you have the qfpclass function. */ +/* #undef HAVE_QFPCLASS */ + +/* Define if you have the setenv function. */ +#define HAVE_SETENV 1 + +/* Define if you have the sincos function. */ +/* #undef HAVE_SINCOS */ + +/* Define if you have the sincosf function. */ +/* #undef HAVE_SINCOSF */ + +/* Define if you have the sincosl function. */ +/* #undef HAVE_SINCOSL */ + +/* Define if you have the sinf function. */ +#define HAVE_SINF 1 + +/* Define if you have the sinhf function. */ +#define HAVE_SINHF 1 + +/* Define if you have the sinhl function. */ +/* #undef HAVE_SINHL */ + +/* Define if you have the sinl function. */ +/* #undef HAVE_SINL */ + +/* Define if you have the sqrtf function. */ +#define HAVE_SQRTF 1 + +/* Define if you have the sqrtl function. */ +/* #undef HAVE_SQRTL */ + +/* Define if you have the strtof function. */ +/* #undef HAVE_STRTOF */ + +/* Define if you have the strtold function. */ +/* #undef HAVE_STRTOLD */ + +/* Define if you have the swprintf function. */ +/* #undef HAVE_SWPRINTF */ + +/* Define if you have the swscanf function. */ +/* #undef HAVE_SWSCANF */ + +/* Define if you have the tanf function. */ +#define HAVE_TANF 1 + +/* Define if you have the tanhf function. */ +#define HAVE_TANHF 1 + +/* Define if you have the tanhl function. */ +/* #undef HAVE_TANHL */ + +/* Define if you have the tanl function. */ +/* #undef HAVE_TANL */ + +/* Define if you have the ungetwc function. */ +/* #undef HAVE_UNGETWC */ + +/* Define if you have the vfwprintf function. */ +/* #undef HAVE_VFWPRINTF */ + +/* Define if you have the vfwscanf function. */ +/* #undef HAVE_VFWSCANF */ + +/* Define if you have the vswprintf function. */ +/* #undef HAVE_VSWPRINTF */ + +/* Define if you have the vswscanf function. */ +/* #undef HAVE_VSWSCANF */ + +/* Define if you have the vwprintf function. */ +/* #undef HAVE_VWPRINTF */ + +/* Define if you have the vwscanf function. */ +/* #undef HAVE_VWSCANF */ + +/* Define if you have the wcrtomb function. */ +/* #undef HAVE_WCRTOMB */ + +/* Define if you have the wcscat function. */ +#define HAVE_WCSCAT 1 + +/* Define if you have the wcschr function. */ +#define HAVE_WCSCHR 1 + +/* Define if you have the wcscmp function. */ +#define HAVE_WCSCMP 1 + +/* Define if you have the wcscoll function. */ +/* #undef HAVE_WCSCOLL */ + +/* Define if you have the wcscpy function. */ +#define HAVE_WCSCPY 1 + +/* Define if you have the wcscspn function. */ +#define HAVE_WCSCSPN 1 + +/* Define if you have the wcsftime function. */ +/* #undef HAVE_WCSFTIME */ + +/* Define if you have the wcslen function. */ +#define HAVE_WCSLEN 1 + +/* Define if you have the wcsncat function. */ +#define HAVE_WCSNCAT 1 + +/* Define if you have the wcsncmp function. */ +#define HAVE_WCSNCMP 1 + +/* Define if you have the wcsncpy function. */ +#define HAVE_WCSNCPY 1 + +/* Define if you have the wcspbrk function. */ +#define HAVE_WCSPBRK 1 + +/* Define if you have the wcsrchr function. */ +#define HAVE_WCSRCHR 1 + +/* Define if you have the wcsrtombs function. */ +/* #undef HAVE_WCSRTOMBS */ + +/* Define if you have the wcsspn function. */ +#define HAVE_WCSSPN 1 + +/* Define if you have the wcsstr function. */ +#define HAVE_WCSSTR 1 + +/* Define if you have the wcstod function. */ +/* #undef HAVE_WCSTOD */ + +/* Define if you have the wcstof function. */ +/* #undef HAVE_WCSTOF */ + +/* Define if you have the wcstok function. */ +/* #undef HAVE_WCSTOK */ + +/* Define if you have the wcstol function. */ +/* #undef HAVE_WCSTOL */ + +/* Define if you have the wcstoul function. */ +/* #undef HAVE_WCSTOUL */ + +/* Define if you have the wcsxfrm function. */ +/* #undef HAVE_WCSXFRM */ + +/* Define if you have the wctob function. */ +/* #undef HAVE_WCTOB */ + +/* Define if you have the wmemchr function. */ +#define HAVE_WMEMCHR 1 + +/* Define if you have the wmemcmp function. */ +#define HAVE_WMEMCMP 1 + +/* Define if you have the wmemcpy function. */ +#define HAVE_WMEMCPY 1 + +/* Define if you have the wmemmove function. */ +#define HAVE_WMEMMOVE 1 + +/* Define if you have the wmemset function. */ +#define HAVE_WMEMSET 1 + +/* Define if you have the wprintf function. */ +/* #undef HAVE_WPRINTF */ + +/* Define if you have the wscanf function. */ +/* #undef HAVE_WSCANF */ + +/* Define if you have the header file. */ +/* #undef HAVE_ENDIAN_H */ + +/* Define if you have the header file. */ +#define HAVE_FLOAT_H 1 + +/* Define if you have the header file. */ +/* #undef HAVE_FP_H */ + +/* Define if you have the header file. */ +/* #undef HAVE_GCONV_H */ + +/* Define if you have the header file. */ +#define HAVE_IEEEFP_H 1 + +/* Define if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define if you have the header file. */ +#define HAVE_LOCALE_H 1 + +/* Define if you have the header file. */ +#define HAVE_MACHINE_ENDIAN_H 1 + +/* Define if you have the header file. */ +#define HAVE_MACHINE_PARAM_H 1 + +/* Define if you have the header file. */ +/* #undef HAVE_NAN_H */ + +/* Define if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_ISA_DEFS_H */ + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_MACHINE_H */ + +/* Define if you have the header file. */ +#define HAVE_SYS_RESOURCE_H 1 + +/* Define if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define if you have the header file. */ +#define HAVE_WCHAR_H 1 + +/* Define if you have the header file. */ +#define HAVE_WCTYPE_H 1 + +/* Define if you have the m library (-lm). */ +#define HAVE_LIBM 1 + +/* Name of package */ +#define PACKAGE "libstdc++" + +/* Version number of package */ +#define VERSION "3.1.0" + +/* Define if the compiler is configured for setjmp/longjmp exceptions. */ +/* #undef _GLIBCPP_SJLJ_EXCEPTIONS */ + +/* Define if sigsetjmp is available. */ +#define HAVE_SIGSETJMP 1 + +/* Only used in build directory testsuite_hooks.h. */ +#define HAVE_MEMLIMIT_DATA 0 + +/* Only used in build directory testsuite_hooks.h. */ +#define HAVE_MEMLIMIT_RSS 0 + +/* Only used in build directory testsuite_hooks.h. */ +#define HAVE_MEMLIMIT_VMEM 0 + +/* Only used in build directory testsuite_hooks.h. */ +#define HAVE_MEMLIMIT_AS 0 + +// +// Systems that have certain non-standard functions prefixed with an +// underscore, we'll handle those here. Must come after config.h.in. +// +#if defined (HAVE__ISNAN) && ! defined (HAVE_ISNAN) +# define HAVE_ISNAN 1 +# define isnan _isnan +#endif + +#if defined (HAVE__ISNANF) && ! defined (HAVE_ISNANF) +# define HAVE_ISNANF 1 +# define isnanf _isnanf +#endif + +#if defined (HAVE__ISNANL) && ! defined (HAVE_ISNANL) +# define HAVE_ISNANL 1 +# define isnanl _isnanl +#endif + +#if defined (HAVE__ISINF) && ! defined (HAVE_ISINF) +# define HAVE_ISINF 1 +# define isinf _isinf +#endif + +#if defined (HAVE__ISINFF) && ! defined (HAVE_ISINFF) +# define HAVE_ISINFF 1 +# define isinff _isinff +#endif + +#if defined (HAVE__ISINFL) && ! defined (HAVE_ISINFL) +# define HAVE_ISINFL 1 +# define isinfl _isinfl +#endif + +#if defined (HAVE__COPYSIGN) && ! defined (HAVE_COPYSIGN) +# define HAVE_COPYSIGN 1 +# define copysign _copysign +#endif + +#if defined (HAVE__COPYSIGNL) && ! defined (HAVE_COPYSIGNL) +# define HAVE_COPYSIGNL 1 +# define copysignl _copysignl +#endif + +#if defined (HAVE__COSF) && ! defined (HAVE_COSF) +# define HAVE_COSF 1 +# define cosf _cosf +#endif + +#if defined (HAVE__ACOSF) && ! defined (HAVE_ACOSF) +# define HAVE_ACOSF 1 +# define acosf _acosf +#endif + +#if defined (HAVE__ACOSL) && ! defined (HAVE_ACOSL) +# define HAVE_ACOSL 1 +# define acosl _acosl +#endif + +#if defined (HAVE__ASINF) && ! defined (HAVE_ASINF) +# define HAVE_ASINF 1 +# define asinf _asinf +#endif + +#if defined (HAVE__ASINL) && ! defined (HAVE_ASINL) +# define HAVE_ASINL 1 +# define asinl _asinl +#endif + +#if defined (HAVE__ATANF) && ! defined (HAVE_ATANF) +# define HAVE_ATANF 1 +# define atanf _atanf +#endif + +#if defined (HAVE__ATANL) && ! defined (HAVE_ATANL) +# define HAVE_ATANL 1 +# define atanl _atanl +#endif + +#if defined (HAVE__CEILF) && ! defined (HAVE_CEILF) +# define HAVE_CEILF 1 +# define aceil _ceilf +#endif + +#if defined (HAVE__CEILL) && ! defined (HAVE_CEILL) +# define HAVE_CEILL 1 +# define aceil _ceill +#endif + +#if defined (HAVE__COSHF) && ! defined (HAVE_COSHF) +# define HAVE_COSHF 1 +# define coshf _coshf +#endif + +#if defined (HAVE__COSL) && ! defined (HAVE_COSL) +# define HAVE_COSL 1 +# define cosl _cosl +#endif + +#if defined (HAVE__LOGF) && ! defined (HAVE_LOGF) +# define HAVE_LOGF 1 +# define logf _logf +#endif + +#if defined (HAVE__COSHL) && ! defined (HAVE_COSHL) +# define HAVE_COSHL 1 +# define coshl _coshl +#endif + +#if defined (HAVE__EXPF) && ! defined (HAVE_EXPF) +# define HAVE_EXPF 1 +# define expf _expf +#endif + +#if defined (HAVE__EXPL) && ! defined (HAVE_EXPL) +# define HAVE_EXPL 1 +# define expl _expl +#endif + +#if defined (HAVE__FABSF) && ! defined (HAVE_FABSF) +# define HAVE_FABSF 1 +# define fabsf _fabsf +#endif + +#if defined (HAVE__FABSL) && ! defined (HAVE_FABSL) +# define HAVE_FABSL 1 +# define fabsl _fabsl +#endif + +#if defined (HAVE__FLOORF) && ! defined (HAVE_FLOORF) +# define HAVE_FLOORF 1 +# define floorf _floorf +#endif + +#if defined (HAVE__FLOORL) && ! defined (HAVE_FLOORL) +# define HAVE_FLOORL 1 +# define floorl _floorl +#endif + +#if defined (HAVE__FMODF) && ! defined (HAVE_FMODF) +# define HAVE_FMODF 1 +# define fmodf _fmodf +#endif + +#if defined (HAVE__FMODL) && ! defined (HAVE_FMODL) +# define HAVE_FMODL 1 +# define fmodl _fmodl +#endif + +#if defined (HAVE__FREXPF) && ! defined (HAVE_FREXPF) +# define HAVE_FREXPF 1 +# define frexpf _frexpf +#endif + +#if defined (HAVE__FREXPL) && ! defined (HAVE_FREXPL) +# define HAVE_FREXPL 1 +# define frexpl _frexpl +#endif + +#if defined (HAVE__LDEXPF) && ! defined (HAVE_LDEXPF) +# define HAVE_LDEXPF 1 +# define ldexpf _ldexpf +#endif + +#if defined (HAVE__LDEXPL) && ! defined (HAVE_LDEXPL) +# define HAVE_LDEXPL 1 +# define ldexpl _ldexpl +#endif + +#if defined (HAVE__LOG10F) && ! defined (HAVE_LOG10F) +# define HAVE_LOG10F 1 +# define log10f _log10f +#endif + +#if defined (HAVE__LOGL) && ! defined (HAVE_LOGL) +# define HAVE_LOGL 1 +# define logl _logl +#endif + +#if defined (HAVE__POWF) && ! defined (HAVE_POWF) +# define HAVE_POWF 1 +# define powf _powf +#endif + +#if defined (HAVE__LOG10L) && ! defined (HAVE_LOG10L) +# define HAVE_LOG10L 1 +# define log10l _log10l +#endif + +#if defined (HAVE__MODF) && ! defined (HAVE_MODF) +# define HAVE_MODF 1 +# define modf _modf +#endif + +#if defined (HAVE__MODL) && ! defined (HAVE_MODL) +# define HAVE_MODL 1 +# define modl _modl +#endif + +#if defined (HAVE__SINF) && ! defined (HAVE_SINF) +# define HAVE_SINF 1 +# define sinf _sinf +#endif + +#if defined (HAVE__POWL) && ! defined (HAVE_POWL) +# define HAVE_POWL 1 +# define powl _powl +#endif + +#if defined (HAVE__SINHF) && ! defined (HAVE_SINHF) +# define HAVE_SINHF 1 +# define sinhf _sinhf +#endif + +#if defined (HAVE__SINL) && ! defined (HAVE_SINL) +# define HAVE_SINL 1 +# define sinl _sinl +#endif + +#if defined (HAVE__SQRTF) && ! defined (HAVE_SQRTF) +# define HAVE_SQRTF 1 +# define sqrtf _sqrtf +#endif + +#if defined (HAVE__SINHL) && ! defined (HAVE_SINHL) +# define HAVE_SINHL 1 +# define sinhl _sinhl +#endif + +#if defined (HAVE__TANF) && ! defined (HAVE_TANF) +# define HAVE_TANF 1 +# define tanf _tanf +#endif + +#if defined (HAVE__SQRTL) && ! defined (HAVE_SQRTL) +# define HAVE_SQRTL 1 +# define sqrtl _sqrtl +#endif + +#if defined (HAVE__TANHF) && ! defined (HAVE_TANHF) +# define HAVE_TANHF 1 +# define tanhf _tanhf +#endif + +#if defined (HAVE__TANL) && ! defined (HAVE_TANL) +# define HAVE_TANF 1 +# define tanf _tanf +#endif + +#if defined (HAVE__STRTOF) && ! defined (HAVE_STRTOF) +# define HAVE_STRTOF 1 +# define strtof _strtof +#endif + +#if defined (HAVE__TANHL) && ! defined (HAVE_TANHL) +# define HAVE_TANHL 1 +# define tanhl _tanhl +#endif + +#if defined (HAVE__STRTOLD) && ! defined (HAVE_STRTOLD) +# define HAVE_STRTOLD 1 +# define strtold _strtold +#endif + +#if defined (HAVE__SINCOS) && ! defined (HAVE_SINCOS) +# define HAVE_SINCOS 1 +# define sincos _sincos +#endif + +#if defined (HAVE__SINCOSF) && ! defined (HAVE_SINCOSF) +# define HAVE_SINCOSF 1 +# define sincosf _sincosf +#endif + +#if defined (HAVE__SINCOSL) && ! defined (HAVE_SINCOSL) +# define HAVE_SINCOSL 1 +# define sincosl _sincosl +#endif + +#if defined (HAVE__FINITE) && ! defined (HAVE_FINITE) +# define HAVE_FINITE 1 +# define finite _finite +#endif + +#if defined (HAVE__FINITEF) && ! defined (HAVE_FINITEF) +# define HAVE_FINITEF 1 +# define finitef _finitef +#endif + +#if defined (HAVE__FINITEL) && ! defined (HAVE_FINITEL) +# define HAVE_FINITEL 1 +# define finitel _finitel +#endif + +#if defined (HAVE__QFINITE) && ! defined (HAVE_QFINITE) +# define HAVE_QFINITE 1 +# define qfinite _qfinite +#endif + +#if defined (HAVE__FPCLASS) && ! defined (HAVE_FPCLASS) +# define HAVE_FPCLASS 1 +# define fpclass _fpclass +#endif + +#if defined (HAVE__QFPCLASS) && ! defined (HAVE_QFPCLASS) +# define HAVE_QFPCLASS 1 +# define qfpclass _qfpclass +#endif + -- cgit v1.3 From dbda0c7715c6db0a05fa6d5baf8bef131520f15e Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Tue, 7 May 2002 01:16:04 +0000 Subject: Mostly filled in contents for GCC 3.1. Bribed by: peter --- gnu/lib/libstdc++/Makefile | 105 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 gnu/lib/libstdc++/Makefile (limited to 'gnu/lib') diff --git a/gnu/lib/libstdc++/Makefile b/gnu/lib/libstdc++/Makefile new file mode 100644 index 0000000000000..3e7e94397d973 --- /dev/null +++ b/gnu/lib/libstdc++/Makefile @@ -0,0 +1,105 @@ +# $FreeBSD$ + +SRCDIR= ${.CURDIR}/../../../contrib/libstdc++-v3/src +.PATH: ${SRCDIR}/src ${SRCDIR}/libmath ${SRCDIR}/config/io \ + ${SRCDIR}/config/locale/generic ${SRCDIR} + +SUBDIR= doc + +LIB= stdc++ +SHLIB_MAJOR= 4 +SHLIB_MINOR= 0 + +CFLAGS+= -DHAVE_CONFIG_H +CFLAGS+= -I${.CURDIR} -I${SRCDIR}/include -I. +CXXFLAGS+= -nostdinc++ \ + -fno-implicit-templates -ffunction-sections -fdata-sections +LDFLAGS+= -version-info 4:0:0 -Wl,--version-script=linker.map + +LDADD+= -lm -lsupc++ +DPADD+= ${LIBM} ${LIBSUPCXX} + +# libstdc++ sources (libstdc++-v3/src/Makefile.in, do not reorder) +SRCS+= globals.cc limits.cc basic_file_stdio.cc complex_io.cc ios.cc \ + strstream.cc cmath.cc bitset.cc functexcept.cc stdexcept.cc \ + vterminate.cc c_locale.cc locale.cc localename.cc codecvt.cc \ + collate_members.cc ctype_members.cc messages_members.cc \ + monetary_members.cc numeric_members.cc time_members.cc concept-inst.cc \ + locale-inst.cc misc-inst.cc stl-inst.cc string-inst.cc wstring-inst.cc \ + valarray-inst.cc ext-inst.cc + +# C parts of math +SRCS+= nan.c signbit.c signbitf.c signbitl.c # stubs.c + +#------------------------------------------------------------------------------ +# From libstdc++-v3/include/Makefile.am + +BITHDRS=basic_ios.h basic_ios.tcc basic_string.h basic_string.tcc \ + boost_concept_check.h char_traits.h codecvt.h concept_check.h \ + cpp_type_traits.h fpos.h fstream.tcc functexcept.h generic_shadow.h \ + gslice.h gslice_array.h indirect_array.h ios_base.h istream.tcc \ + locale_facets.h locale_facets.tcc localefwd.h mask_array.h ostream.tcc \ + pthread_allocimpl.h stream_iterator.h streambuf_iterator.h slice.h \ + slice_array.h sstream.tcc \ + stl_algo.h stl_algobase.h stl_alloc.h stl_bvector.h stl_construct.h \ + stl_deque.h stl_function.h stl_heap.h stl_iterator.h \ + stl_iterator_base_funcs.h stl_iterator_base_types.h stl_list.h \ + stl_map.h stl_multimap.h stl_multiset.h stl_numeric.h stl_pair.h \ + stl_pthread_alloc.h stl_queue.h stl_raw_storage_iter.h stl_relops.h \ + stl_set.h stl_stack.h stl_tempbuf.h stl_threads.h stl_tree.h \ + stl_uninitialized.h stl_vector.h \ + streambuf.tcc stringfwd.h type_traits.h valarray_array.h \ + valarray_array.tcc valarray_meta.h + +BKWHDRS=complex.h iomanip.h istream.h ostream.h stream.h streambuf.h algo.h \ + algobase.h alloc.h bvector.h defalloc.h deque.h function.h hash_map.h \ + hash_set.h hashtable.h heap.h iostream.h iterator.h list.h map.h \ + multimap.h new.h multiset.h pair.h queue.h rope.h set.h slist.h \ + stack.h tempbuf.h tree.h vector.h fstream.h strstream.h strstream \ + backward_warning.h + +EXTHDRS=algorithm functional hash_map hash_set iterator memory numeric \ + rb_tree rope ropeimpl.h slist stl_hash_fun.h stl_hashtable.h stl_rope.h + +# This is the common subset of files that all three "C" header models use. +BASEDHDRS=std_cassert.h std_cctype.h std_cerrno.h std_cfloat.h std_ciso646.h \ + std_climits.h std_clocale.h std_cmath.h std_csetjmp.h std_csignal.h \ + std_cstdarg.h std_cstddef.h std_cstdio.h std_cstdlib.h std_cstring.h \ + std_ctime.h std_cwchar.h std_cwctype.h \ + cmath.tcc + +STDHDRS=std_algorithm.h std_bitset.h std_complex.h std_deque.h std_fstream.h \ + std_functional.h std_iomanip.h std_ios.h std_iosfwd.h std_iostream.h \ + std_istream.h std_iterator.h std_limits.h std_list.h std_locale.h \ + std_map.h std_memory.h std_numeric.h std_ostream.h std_queue.h \ + std_set.h std_sstream.h std_stack.h std_stdexcept.h std_streambuf.h \ + std_string.h std_utility.h std_valarray.h std_vector.h + +TGTHDRS=ctype_base.h ctype_inline.h ctype_noninline.h os_defines.h \ + atomicity.h cpu_limits.h + +# These extra_target_headers files are all built with ad hoc naming rules. +XTGHDRS=basic_file.h c++config.h c++io.h c++locale.h messages_members.h \ + codecvt_specializations.h + +THDHDRS=gthr.h gthr-single.h gthr-posix.h gthr-default.h + +BASEDHDRS_renamed= ${BASEDHDRS:Mstd_*:S/std_//g:S/.h//g} +STDHDRS_renamed= ${STDHDRS:Mstd_*:S/std_//g:S/.h//g} + +#------------------------------------------------------------------------------ + +# gxx_include_dir = $(prefix)/include/g++-v3 +beforeinstall: + mkdir -p ${DESTDIR}/usr/include/g++/{backward,ext} + ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \ + ${.CURDIR}/_G_config.h \ + ${HDRS:S;^;${SRCDIR}/;} \ + ${IHDRS:S;^;${SRCDIR}/../libio/;} \ + ${STLHDRS:S;^;${SRCDIR}/stl/;} \ + ${DESTDIR}/usr/include/g++ + ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \ + ${STDHDRS:S;^;${SRCDIR}/std/;} \ + ${DESTDIR}/usr/include/g++/std + +.include -- cgit v1.3 From 94083430d854a244046a44083ab9cf69ea729dc9 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Fri, 10 May 2002 08:52:41 +0000 Subject: Need to build libgcc.so with -nostdlib -- otherwise we try linking with ourself. --- gnu/lib/libgcc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/lib') diff --git a/gnu/lib/libgcc/Makefile b/gnu/lib/libgcc/Makefile index e9a885b0251ec..38ad854dca087 100644 --- a/gnu/lib/libgcc/Makefile +++ b/gnu/lib/libgcc/Makefile @@ -35,7 +35,7 @@ XCC= ${CC} XCXX= ${CXX} -CFLAGS+= -fexceptions +CFLAGS+= -nostdlib -fexceptions CFLAGS+= -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED \ -DFINE_GRAINED_LIBRARIES .if ${OBJFORMAT} != aout -- cgit v1.3