Add libcc_fbsd.a that contains libc and libiberty routines needed in

bootstraping on FreeBSD specifically.

3.2 upgrade path tested by:	marcel
This commit is contained in:
David E. O'Brien 1999-12-19 20:22:42 +00:00
parent 8bdd91e3a1
commit 665fb296a7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54837
6 changed files with 30 additions and 13 deletions

View file

@ -3,7 +3,7 @@
# The order of some of these are rather important. Some depend on previous
# subdirs.
SUBDIR= cc_tools cc_int cc_drv cpp cc1 cc cc1plus c++ c++filt doc
SUBDIR= cc_fbsd cc_tools cc_int cc_drv cpp cc1 cc cc1plus c++ c++filt doc
.if !defined(NO_OBJC)
SUBDIR+= cc1obj

View file

@ -4,7 +4,8 @@
# Sometimes this is .include'd several times...
.if !defined(GCCDIR)
GCCDIR= ${.CURDIR}/../../../../contrib/gcc
#GCCDIR= ${.CURDIR}/../../../../contrib/gcc
GCCDIR= /usr/src/contrib/gcc
.if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
GCC_ARCH=mips
@ -49,13 +50,13 @@ CFLAGS+= -I${.CURDIR}/../cc_tools
CFLAGS+= -I${GCCDIR} -I${GCCDIR}/config
.if exists(${.OBJDIR}/../cc_int)
LIBDESTDIR= ${.OBJDIR}/../cc_int
LIBCC_DRV= ${.OBJDIR}/../cc_drv/libcc_drv.a
LIBDESTDIR= ${.OBJDIR}/..
.else
LIBDESTDIR= ${.CURDIR}/../cc_int
LIBCC_DRV= ${.CURDIR}/../cc_drv/libcc_drv.a
LIBDESTDIR= ${.CURDIR}/..
.endif
LIBCC_INT= ${LIBDESTDIR}/libcc_int.a
LIBCC_INT= ${LIBDESTDIR}/cc_int/libcc_int.a
LIBCC_DRV= ${LIBDESTDIR}/cc_drv/libcc_drv.a
LIBCC_FBSD= ${LIBDESTDIR}/cc_fbsd/libcc_fbsd.a
.endif # !GCCDIR

View file

@ -10,7 +10,7 @@ LINKS= ${BINDIR}/c++ ${BINDIR}/g++
LINKS+= ${BINDIR}/c++ ${BINDIR}/CC
NOMAN= 1
DPADD+= ${LIBCC_DRV}
LDADD+= ${LIBCC_DRV}
DPADD+= ${LIBCC_DRV} ${LIBCC_FBSD}
LDADD+= ${LIBCC_DRV} ${LIBCC_FBSD}
.include <bsd.prog.mk>

View file

@ -11,7 +11,7 @@ SRCS= gcc.c gccspec.c
LINKS= ${BINDIR}/cc ${BINDIR}/gcc
MLINKS= gcc.1 cc.1 gcc.1 c++.1 gcc.1 g++.1 gcc.1 CC.1
DPADD+= ${LIBCC_DRV}
LDADD+= ${LIBCC_DRV}
DPADD+= ${LIBCC_DRV} ${LIBCC_FBSD}
LDADD+= ${LIBCC_DRV} ${LIBCC_FBSD}
.include <bsd.prog.mk>

View file

@ -0,0 +1,16 @@
# $FreeBSD$
LIBCDIR= ${.CURDIR}/../../../../lib/libc
.PATH: ${LIBCDIR}/gen ${LIBCDIR}/stdio
LIB= cc_fbsd
NOPROFILE= YES
NOPIC= YES
SRCS= getobjformat.c mktemp.c
install:
@true
.include <bsd.lib.mk>

View file

@ -7,8 +7,8 @@
PROG= f77
SRCS= gcc.c g77spec.c version.c
DPADD= ${LIBCC_DRV}
LDADD= ${LIBCC_DRV}
DPADD+= ${LIBCC_DRV} ${LIBCC_FBSD}
LDADD+= ${LIBCC_DRV} ${LIBCC_FBSD}
f77.1: g77.1
ln -sf ${.ALLSRC} ${.TARGET}