Preliminary port of gcc 3.0.
Currently, bootstraps C and C++ on i386. This is definitely not complete yet. Lots of libtool patches, and local changes to 2.95.3 (such as proper -shared support) are missing, but this should allow people to start banging on it.
This commit is contained in:
parent
978cfe547c
commit
a8e8cca603
@ -1,26 +1,40 @@
|
||||
# $OpenBSD: Makefile,v 1.37 2001/05/06 01:27:55 lebel Exp $
|
||||
# $OpenBSD: Makefile,v 1.38 2001/07/04 15:07:28 espie Exp $
|
||||
|
||||
COMMENT= "experimental GNU C, C++, f77..., release flavor"
|
||||
# This is a configuration file for egcs, snapshot flavor
|
||||
|
||||
# This is a configuration file for egcs, stable release.
|
||||
COM= 'GNU compiler collection (experimental)'
|
||||
COMMENT= ${COM}: core C compiler
|
||||
COMMENT-c++ = ${COM}: C++ compiler
|
||||
COMMENT-chill= ${COM}: Chill compiler
|
||||
COMMENT-g77= ${COM}: f77 compiler
|
||||
COMMENT-java= ${COM}: java compiler
|
||||
COMMENT-objc= ${COM}: obj C compiler
|
||||
|
||||
PKGNAME= ${DISTNAME}-core
|
||||
PKGNAME-c++ = ${DISTNAME}-c++
|
||||
PKGNAME-chill= ${DISTNAME}-chill
|
||||
PKGNAME-g77= ${DISTNAME}-g77
|
||||
PKGNAME-java= ${DISTNAME}-java
|
||||
PKGNAME-objc= ${DISTNAME}-objc
|
||||
|
||||
# we could remove this dependency by patching configure, but this is not
|
||||
# reasonable...
|
||||
BUILD_DEPENDS= autoconf::devel/autoconf
|
||||
|
||||
CATEGORIES= lang
|
||||
NEED_VERSION= 1.402
|
||||
FAKE=No
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
# This should be patched out later.
|
||||
BUILD_DEPENDS+= bison:bison-*:devel/bison
|
||||
|
||||
CATEGORIES= lang
|
||||
NEED_VERSION= 1.361
|
||||
MAINTAINER= Marc Espie <espie@openbsd.org>
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
COMES_WITH= 2.6
|
||||
|
||||
# experimental port, changes once a week, don't bother remirroring distfiles.
|
||||
|
||||
PERMIT_PACKAGE_FTP=Yes
|
||||
PERMIT_DISTFILES_FTP=Yes
|
||||
PERMIT_PACKAGE_CDROM=Yes
|
||||
PERMIT_DISTFILES_CDROM=Yes
|
||||
|
||||
# Testers for the new configurations:
|
||||
# Jason L.Wright & Marco S.Hyman for sparc,
|
||||
@ -39,175 +53,182 @@ COMES_WITH= 2.6
|
||||
# namely, testsuite holds all the tests. g++-tests no longer exists,
|
||||
# and g77-tests only holds duplicates from the main testsuite archive.
|
||||
#MAKE_TESTS=yes
|
||||
MAKE_GXX=yes
|
||||
MAKE_FORTRAN=yes
|
||||
MAKE_CHILL=yes
|
||||
MAKE_OBJC=yes
|
||||
MAKE_JAVA=yes
|
||||
MAKE_GXX=Yes
|
||||
#MAKE_FORTRAN=Yes
|
||||
# we don't care about chill
|
||||
#MAKE_CHILL=yes
|
||||
#MAKE_OBJC=Yes
|
||||
#MAKE_JAVA=Yes
|
||||
|
||||
.if defined(MAKE_TESTS)
|
||||
BUILD_DEPENDS+= runtest::devel/dejagnu
|
||||
MULTI_PACKAGES=
|
||||
# No sub packages description
|
||||
DESCR=${PKGDIR}/DESCR
|
||||
|
||||
.if defined(MAKE_TESTS) && ${MAKE_TESTS:L} == "yes"
|
||||
BUILD_DEPENDS+= runtest::lang/egcs/dejagnu
|
||||
.endif
|
||||
|
||||
# if you want/need to use the mammoth archive.
|
||||
ONE_ARCHIVE=yes
|
||||
# No way around it, java wants a pure parser
|
||||
.if defined(MAKE_JAVA) && ${MAKE_JAVA:L} == "yes"
|
||||
BUILD_DEPENDS+=bison:bison-*:devel/bison
|
||||
.endif
|
||||
|
||||
#### fetch section
|
||||
VERSION= 2.95.1
|
||||
|
||||
DIRECTORY=egcs/releases/%SUBDIR%/
|
||||
LATEST=3.0
|
||||
DIRECTORY=release/%DATE%/
|
||||
DISTNAME= gcc-${LATEST}
|
||||
|
||||
# getting the right archives where they should be
|
||||
MASTER_SITE_SUBDIR=gcc-2.95.1
|
||||
DISTNAME= gcc-${VERSION}
|
||||
MASTER_SITE_SUBDIR=${LATEST_DATE}
|
||||
|
||||
DIST_SUBDIR=egcs
|
||||
|
||||
.if defined(ONE_ARCHIVE)
|
||||
DISTFILES= gcc-${VERSION}${EXTRACT_SUFX}
|
||||
.else
|
||||
DISTFILES= gcc-${LATEST}${EXTRACT_SUFX}
|
||||
|
||||
DISTFILES= gcc-core-${VERSION}${EXTRACT_SUFX}
|
||||
.if defined(MAKE_GXX)
|
||||
DISTFILES+= gcc-g++-${VERSION}${EXTRACT_SUFX}
|
||||
.endif
|
||||
#.if defined(MAKE_TESTS)
|
||||
#DISTFILES+=gcc-tests-${VERSION}${EXTRACT_SUFX}
|
||||
#.endif
|
||||
.if defined(MAKE_FORTRAN)
|
||||
DISTFILES+=gcc-g77-${VERSION}${EXTRACT_SUFX}
|
||||
.endif
|
||||
.if defined(MAKE_JAVA)
|
||||
DISTFILES+=gcc-java-${VERSION}${EXTRACT_SUFX}
|
||||
.endif
|
||||
.if defined(MAKE_OBJC)
|
||||
DISTFILES+=gcc-objc-${VERSION}${EXTRACT_SUFX}
|
||||
.endif
|
||||
.if defined(MAKE_CHILL)
|
||||
DISTFILES+=gcc-chill-${VERSION}${EXTRACT_SUFX}
|
||||
.endif
|
||||
.endif
|
||||
SITES=
|
||||
|
||||
MASTER_SITES= ftp://egcs.cygnus.com/pub/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.lip6.fr/pub/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://mirror.aarnet.edu.au/pub/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://go.cygnus.com/pub/ftp.cygnus.com/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.goof.com/pub/pcg/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://cambridge.cygnus.com/pub/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.ninemoons.com/pub/mirrors/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://sunsite.doc.ic.ac.uk/Mirrors/egcs.cygnus.com/pub/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://gd.tuwien.ac.at/gnu/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.ilog.fr/pub/Mirrors/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.irisa.fr/pub/mirrors/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.gts.cz/pub/MIRRORS/ftp.cygnus.com/pub/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://sunsite.auc.dk/pub/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.fu-berlin.de/unix/languages/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.gwdg.de/pub/cygnus/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.mpi-sb.mpg.de/pub/gnu/mirror/egcs.cygnus.com/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.uni-trier.de/pub/languages/c/implementation/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.sunet.se/pub/gnu/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.unicamp.br/pub/gnu/=EXTRA=/cygnus/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.lbi.ro/mirrors/ftp.cygnus.com/pub/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.ntua.gr/pub/gnu/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.nluug.nl/pub/languages/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.dti.ad.jp/pub/lang/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.win.or.jp/pub/lang/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.telewaynet.ad.jp/pub/lang/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.lab.kdd.co.jp/lang/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.funet.fi/mirrors/ftp.cygnus.com/pub/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.crc.ca/pub/packages/egcs/%SUBDIR%/
|
||||
MASTER_SITES+= ftp://ftp.nc.orc.ru/pub/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.u-aizu.ac.jp/pub/lang/C/pcg/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.maisel.int-evry.fr/pub/linux/pentium/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.yggdrasil.com/mirrors/site/egcs.cygnus.com/pub/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://unix.hensa.ac.uk/mirrors/egcs.cygnus.com/pub/${DIRECTORY}
|
||||
SITES+= ftp://ftp.uvsq.fr/pub/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.grolier.fr/pub/egcs/${DIRECTORY}
|
||||
SITES+= ftp://gd.tuwien.ac.at/gnu/gcc/${DIRECTORY}
|
||||
SITES+= ftp://chardonnay.elis.rug.ac.be/pub/mirrors/gcc.cygnus.com/pub/gcc/${DIRECTORY}
|
||||
SITES+= ftp://gd.tuwien.ac.at/gnu/gcc/${DIRECTORY}
|
||||
SITES+= ftp://egcs.cygnus.com/pub/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.goof.com/pub/pcg/egcs/${DIRECTORY}
|
||||
SITES+= ftp://go.cygnus.com/pub/ftp.cygnus.com/egcs/${DIRECTORY}
|
||||
SITES+= ftp://cambridge.cygnus.com/pub/egcs/${DIRECTORY}
|
||||
SITES+= ftp://sunsite.doc.ic.ac.uk/Mirrors/egcs.cygnus.com/pub/egcs/${DIRECTORY}
|
||||
|
||||
# couldn't contact those, maybe they work ?
|
||||
MASTER_SITES+= ftp://sunsite.mff.cuni.cz/pub/GNU/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://sunsite.icm.edu.pl/pub/programming/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.task.gda.pl/mirror/egcs.cygnus.com/pub/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://ftp.lca.uevora.pt/pub/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://cair-archive.kaist.ac.kr/pub/gnu/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://linux.ihep.su/pub/cygnus/${DIRECTORY}
|
||||
MASTER_SITES+= ftp://linux.cis.nctu.edu.tw/pub/packages/pcg/${DIRECTORY}
|
||||
SITES+= ftp://ftp.gts.cz/pub/MIRRORS/ftp.cygnus.com/pub/egcs/${DIRECTORY}
|
||||
SITES+= ftp://sunsite.auc.dk/pub/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.fu-berlin.de/unix/languages/egcs/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.gwdg.de/pub/cygnus/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.mpi-sb.mpg.de/pub/gnu/mirror/egcs.cygnus.com/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.uni-trier.de/pub/languages/c/implementation/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.sunet.se/pub/gnu/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.unicamp.br/pub/gnu/=EXTRA=/cygnus/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.lbi.ro/mirrors/ftp.cygnus.com/pub/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.ntua.gr/pub/gnu/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.nluug.nl/pub/languages/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.dti.ad.jp/pub/lang/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.win.or.jp/pub/lang/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.telewaynet.ad.jp/pub/lang/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.lab.kdd.co.jp/lang/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.funet.fi/mirrors/ftp.cygnus.com/pub/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.crc.ca/pub/packages/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.nc.orc.ru/pub/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.u-aizu.ac.jp/pub/lang/C/pcg/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.maisel.int-evry.fr/pub/linux/pentium/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.yggdrasil.com/mirrors/site/egcs.cygnus.com/pub/egcs/${DIRECTORY}
|
||||
SITES+= ftp://unix.hensa.ac.uk/mirrors/egcs.cygnus.com/pub/egcs/${DIRECTORY}
|
||||
|
||||
# Misc bug sections
|
||||
pre-fetch:
|
||||
.if (${MACHINE_ARCH} == "i386")
|
||||
@(cd /tmp && /usr/bin/as -k ${FILESDIR}/gas-bug/test-i386-gas.s) || \
|
||||
(echo "Your gas has a bug, see ${FILESDIR}/gas-bug for details"; exit 1)
|
||||
.endif
|
||||
# Can't contact those, maybe they work ?
|
||||
SITES+= ftp://sunsite.mff.cuni.cz/pub/GNU/egcs/${DIRECTORY}
|
||||
SITES+= ftp://sunsite.icm.edu.pl/pub/programming/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.task.gda.pl/mirror/egcs.cygnus.com/pub/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.lca.uevora.pt/pub/egcs/${DIRECTORY}
|
||||
SITES+= ftp://cair-archive.kaist.ac.kr/pub/gnu/egcs/${DIRECTORY}
|
||||
SITES+= ftp://linux.ihep.su/pub/cygnus/egcs/${DIRECTORY}
|
||||
SITES+= ftp://linux.cis.nctu.edu.tw/pub/packages/pcg/egcs/${DIRECTORY}
|
||||
SITES+= ftp://ftp.ninemoons.com/pub/mirrors/egcs/${DIRECTORY}
|
||||
|
||||
# Bad mirrors (no snapshot)
|
||||
# ftp.lip6.fr, ftp.ilog.fr, ftp.irisa.fr
|
||||
# No route to host
|
||||
# mirrors.aarnet.edu.au
|
||||
#SITES+= ftp://ftp.lip6.fr/pub/egcs/${DIRECTORY}
|
||||
#SITES+= ftp://ftp.ilog.fr/pub/Mirrors/egcs/${DIRECTORY}
|
||||
#SITES+= ftp://ftp.irisa.fr/pub/mirrors/egcs.cygwin.com/gcc/${DIRECTORY}
|
||||
MASTER_SITES=${SITES:S/%DATE%/${LATEST_DATE}/}
|
||||
|
||||
# add a possible next snapshot
|
||||
|
||||
####
|
||||
# Patch section
|
||||
|
||||
PATCH_LIST=patch-core-*
|
||||
.if defined(MAKE_GXX)
|
||||
PATCH_LIST+=patch-g++-*
|
||||
.endif
|
||||
.if defined(MAKE_OBJC)
|
||||
PATCH_LIST+=patch-objc-*
|
||||
.endif
|
||||
.if defined(MAKE_CHILL)
|
||||
PATCH_LIST+=patch-chill-*
|
||||
.endif
|
||||
.if defined(MAKE_FORTRAN)
|
||||
PATCH_LIST+=patch-g77-*
|
||||
.endif
|
||||
.if defined(MAKE_JAVA)
|
||||
PATCH_LIST+=patch-java-*
|
||||
.endif
|
||||
|
||||
# get openbsd configuration files where they should be
|
||||
post-patch:
|
||||
# avoid packaging include copies along...
|
||||
find ${WRKSRC} -name \*.orig|xargs rm
|
||||
cp -R ${FILESDIR}/config/* ${WRKSRC}
|
||||
rm -rf ${WRKSRC}/texinfo
|
||||
# cp -R ${FILESDIR}/config/* ${WRKSRC}
|
||||
# cp -R ${FILESDIR}/include/* ${WRKSRC}/gcc/ginclude
|
||||
cd ${WRKSRC} && contrib/gcc_update --touch
|
||||
# rebuild configure files after patching, then move source around !!!
|
||||
# XXX: don't try to autoconf the main configure file, it's not autoconf.
|
||||
cd ${WRKSRC}/gcc && PATH=${PORTPATH} autoreconf
|
||||
cd ${WRKSRC}/libiberty && PATH=${PORTPATH} autoreconf
|
||||
cd ${WRKSRC}/gcc && PATH=${PORTPATH} autoconf
|
||||
cd ${WRKSRC}/libiberty && PATH=${PORTPATH} autoconf
|
||||
cd ${WRKSRC}/libstdc++-v3 && PATH=${PORTPATH} autoheader
|
||||
cd ${WRKSRC}/libstdc++-v3 && PATH=${PORTPATH} autoconf
|
||||
cd ${WRKSRC}/libf2c/libI77 && PATH=${PORTPATH} autoconf
|
||||
cd ${WRKSRC}/fastjar && PATH=${PORTPATH} autoconf
|
||||
cd ${WRKSRC} && rm -rf texinfo
|
||||
cd ${WRKSRC} && rm -rf zlib
|
||||
|
||||
|
||||
|
||||
|
||||
####
|
||||
# configure section
|
||||
#
|
||||
# define AS_PATH/LD_PATH is you don't want to use the default as/ld.
|
||||
# This should not be used for regular releases, but if you're using this
|
||||
# snapshot, you know what you're doing, don't you ?
|
||||
|
||||
CONFIGURE_STYLE=gnu
|
||||
CONFIGURE_STYLE= gnu dest
|
||||
|
||||
#CONFIGURE_SCRIPT=../source/configure
|
||||
|
||||
LANGS=c
|
||||
.if defined(MAKE_GXX)
|
||||
LANGS+=c++
|
||||
LANGS:=${LANGS},c++
|
||||
MULTI_PACKAGES+=-c++
|
||||
.endif
|
||||
.if defined(MAKE_FORTRAN)
|
||||
LANGS+=f77
|
||||
LANGS:=${LANGS},f77
|
||||
.endif
|
||||
.if defined(MAKE_CHILL)
|
||||
LANGS+=CHILL
|
||||
LANGS.=${LANGS},CHILL
|
||||
.endif
|
||||
.if defined(MAKE_OBJC)
|
||||
LANGS+=objc
|
||||
LANGS:=${LANGS},objc
|
||||
.endif
|
||||
.if defined(MAKE_JAVA)
|
||||
LANGS+=java
|
||||
LANGS:=${LANGS},java
|
||||
.endif
|
||||
|
||||
CONFIGURE_ENV=LANGUAGES='${LANGS}'
|
||||
# Note: the configure target passes CFLAGS to the configure script anyways.
|
||||
|
||||
CONFIGURE_ARGS=--verbose --with-gnu-ld --with-gnu-as \
|
||||
--program-transform-name=s,^,e, \
|
||||
--disable-subdir-texinfo \
|
||||
--disable-nls
|
||||
CFLAGS=-O2 -g
|
||||
|
||||
|
||||
CONFIGURE_ARGS= --verbose --program-transform-name=s,^,e, \
|
||||
--disable-nls
|
||||
|
||||
# This is needed, as internal cpp is no longer compatible with the
|
||||
# visible beast
|
||||
CONFIGURE_ARGS+=--enable-cpp
|
||||
CONFIGURE_ARGS+=--enable-languages=${LANGS}
|
||||
|
||||
CONFIGURE_ARGS+=${CONFIGURE_SHARED}
|
||||
|
||||
# Not really stable yet
|
||||
# CONFIGURE_ARGS+= --enable-threads=yes
|
||||
# if you wish to try your luck
|
||||
#CONFIGURE_ARGS+= --enable-threads=yes
|
||||
|
||||
.if defined(AS_PATH)
|
||||
CONFIGURE_ARGS += --with-as=${AS_PATH}
|
||||
.else
|
||||
CONFIGURE_ARGS += --with-gnu-as
|
||||
.endif
|
||||
|
||||
.if defined(LD_PATH)
|
||||
CONFIGURE_ARGS += --with-ld=${LD_PATH}
|
||||
.else
|
||||
CONFIGURE_ARGS += --with-gnu-ld
|
||||
.endif
|
||||
|
||||
CONFIGURE_ARGS += ${CONFIGURE_SHARED}
|
||||
|
||||
SEPARATE_BUILD=concurrent
|
||||
#WRKBUILD=${WRKDIR}/build-${MACHINE_ARCH}
|
||||
|
||||
|
||||
|
||||
####
|
||||
# build section
|
||||
@ -215,68 +236,53 @@ SEPARATE_BUILD=concurrent
|
||||
# reported to MAINTAINER.
|
||||
#USE_GMAKE= yes
|
||||
|
||||
# desactivate the fixincludes mechanism by supplying a script which does
|
||||
# nothing
|
||||
pre-build:
|
||||
echo "#!/bin/sh" >${WRKBUILD}/gcc/fixinc.sh
|
||||
|
||||
# you shouldn't skip bootstrap unless you know what you're doing
|
||||
# use bootstrap-lean if you're pressed for space
|
||||
ALL_TARGET=bootstrap
|
||||
#ALL_TARGET=bootstrap3
|
||||
# ALL_TARGET=bootstrap-lean
|
||||
# XXX we need to override do-build to get the warnings from within make
|
||||
do-build:
|
||||
@(cd ${WRKBUILD}; \
|
||||
${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} -f Makefile ${ALL_TARGET} 2>warnings) || \
|
||||
(echo "*** Make bootstrap failed."; \
|
||||
echo "*** Look at ${WRKBUILD}/warnings for errors"; exit 1)
|
||||
|
||||
FAKE_FLAGS=DESTDIR=${WRKINST}
|
||||
|
||||
# desactivate the fixincludes mechanism by supplying a script which does
|
||||
# nothing
|
||||
pre-build:
|
||||
sed -e s,@WRKBUILD@,${WRKBUILD}, -e s,@FILESDIR@,${FILESDIR}, \
|
||||
${FILESDIR}/fixinc.sh.m4 >${WRKSRC}/gcc/fixinc/openbsd-special
|
||||
chmod a+x ${WRKSRC}/gcc/fixinc/openbsd-special
|
||||
echo "cp ${WRKSRC}/gcc/fixinc/openbsd-special ${WRKBUILD}/gcc/fixinc.sh" >${WRKSRC}/gcc/fixinc/mkfixinc.sh
|
||||
|
||||
####
|
||||
# Install & tests section
|
||||
|
||||
# Tests no longer need to be performed at the end of install, this
|
||||
# was a bug in libstdc++/openbsd.ml
|
||||
post-build:
|
||||
# avoid packaging include copies along...
|
||||
find ${WRKBUILD} -name \*.orig|xargs rm
|
||||
mkdir -p ${WRKBUILD}/gcc/include/machine
|
||||
cp ${FILESDIR}/include/machine/ansi.h ${WRKBUILD}/gcc/include/machine
|
||||
|
||||
# Tests still need to be performed at the end of install, I don't know why.
|
||||
.if defined(MAKE_TESTS)
|
||||
TEST_RESULT=${WRKBUILD}/test.result
|
||||
|
||||
post-build:
|
||||
post-install:
|
||||
@(cd ${WRKBUILD}; ulimit -c 0; \
|
||||
${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} -f Makefile check && \
|
||||
${MAKE_ENV} make -f ${MAKE_FILE} check && \
|
||||
${WRKSRC}/contrib/test_summary >${TEST_RESULT})
|
||||
@echo "Please send the tests results to the egcs project"
|
||||
@echo "Please send the tests results to the gcc project"
|
||||
@echo "By invoking make send-results"
|
||||
|
||||
send-results:
|
||||
[ -f ${TEST_RESULT} ] && sh ${TEST_RESULT}
|
||||
.else
|
||||
.endif
|
||||
|
||||
PLIST=${WRKBUILD}/PLIST
|
||||
|
||||
M4FLAGS=-Uinclude -DDISTNAME=${DISTNAME}
|
||||
.if defined(MAKE_GXX)
|
||||
M4FLAGS+= -DGXX
|
||||
.endif
|
||||
.if defined(MAKE_FORTRAN)
|
||||
M4FLAGS+= -DFORTRAN
|
||||
.endif
|
||||
.if defined(MAKE_CHILL)
|
||||
M4FLAGS+= -DCHILL
|
||||
.endif
|
||||
.if defined(MAKE_OBJC)
|
||||
M4FLAGS+= -DOBJC
|
||||
.endif
|
||||
.if defined(MAKE_JAVA)
|
||||
M4FLAGS+= -DJAVA
|
||||
.endif
|
||||
#USE_GMAKE=Yes
|
||||
SED_PLIST=|sed -e s/@GCCARCH@/`${GCC_NAME} -dumpmachine`/ \
|
||||
-e s/@VERSION@/`${GCC_NAME} -dumpversion`/ \
|
||||
-e 's/@COREPKG@/${DISTNAME}-core/'
|
||||
|
||||
GCC_NAME=${WRKBUILD}/gcc/xgcc
|
||||
pre-install:
|
||||
${M4} ${M4FLAGS} -DARCH=`${GCC_NAME} -dumpmachine` \
|
||||
-DVERSION=`${GCC_NAME} -dumpversion` \
|
||||
<${FILESDIR}/PLIST.template >${PLIST}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
.if !defined(NO_SHARED_LIBS)
|
||||
M4FLAGS+= -DDYNAMIC
|
||||
.endif
|
||||
|
12
lang/egcs/stable/files/include/machine/ansi.h
Normal file
12
lang/egcs/stable/files/include/machine/ansi.h
Normal file
@ -0,0 +1,12 @@
|
||||
/* ansi.h stub to fix _BSD_VA_LIST_ type and C++ issues. */
|
||||
#ifndef _ANSI_H_
|
||||
#include_next <machine/ansi.h>
|
||||
#undef _BSD_VA_LIST_
|
||||
#define _BSD_VA_LIST_ __builtin_va_list
|
||||
/* in ANSI C++, wchar_t is a built-in type, NOT a typedef */
|
||||
#if defined(__cplusplus)
|
||||
#ifdef _BSD_WCHAR_T_
|
||||
#undef _BSD_WCHAR_T_
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
@ -1,21 +1,3 @@
|
||||
MD5 (egcs/gcc-2.95.1.tar.bz2) = 8f88fffcc7999b54c6fd9f593109355f
|
||||
MD5 (egcs/gcc-chill-2.95.1.tar.bz2) = cca03b92da26201fde28ea2749999383
|
||||
MD5 (egcs/gcc-core-2.95.1.tar.bz2) = 933e2a57312e1974156f03b03546b035
|
||||
MD5 (egcs/gcc-g++-2.95.1.tar.bz2) = 55bc8b3a08dcaec7f35fe93758e7ae04
|
||||
MD5 (egcs/gcc-g77-2.95.1.tar.bz2) = 3c1e66969f49eb9d235b0d1fc74477b1
|
||||
MD5 (egcs/gcc-java-2.95.1.tar.bz2) = a0b98682ffa57cdf050e2f063b9d5ea5
|
||||
MD5 (egcs/gcc-objc-2.95.1.tar.bz2) = 501acdfb08acd4fef1a307f637a88375
|
||||
RMD160 (egcs/gcc-2.95.1.tar.bz2) = a29dd9e0fdde53213d04147f5400a2821f9a9093
|
||||
RMD160 (egcs/gcc-chill-2.95.1.tar.bz2) = c7e986dd87ce0038a4dc0560088a73676ff356b0
|
||||
RMD160 (egcs/gcc-core-2.95.1.tar.bz2) = 41e59dbb36af7c7529ae01f4a6fb96a579344457
|
||||
RMD160 (egcs/gcc-g++-2.95.1.tar.bz2) = 581becc23ebb9c0f02687212f647167e2425e371
|
||||
RMD160 (egcs/gcc-g77-2.95.1.tar.bz2) = f7e78f6fa3cbb10734b0c9390174943e8397ca4a
|
||||
RMD160 (egcs/gcc-java-2.95.1.tar.bz2) = cd1641355795fe6c1340d2019fb92bc151e65ec1
|
||||
RMD160 (egcs/gcc-objc-2.95.1.tar.bz2) = afc9f05f4b9610e92f7752af359ec5c54cf5d49f
|
||||
SHA1 (egcs/gcc-2.95.1.tar.bz2) = 8694c40fc738e8c5b5d71e9e81d69d95c35b3d34
|
||||
SHA1 (egcs/gcc-chill-2.95.1.tar.bz2) = 8a2b26dccf59103120ad8f5b0239f368dcc8e0b1
|
||||
SHA1 (egcs/gcc-core-2.95.1.tar.bz2) = fdef1f9dbcfc8316a4b24d042844594178eeb3aa
|
||||
SHA1 (egcs/gcc-g++-2.95.1.tar.bz2) = 8f2f0e9677a8f599322f50e53c7c59b786ced408
|
||||
SHA1 (egcs/gcc-g77-2.95.1.tar.bz2) = c96e7a710c8364492bd79a2e298ee7c0dd17c446
|
||||
SHA1 (egcs/gcc-java-2.95.1.tar.bz2) = 1917b42e59b8b84401fa1ad51b7ea8d75fcdf09c
|
||||
SHA1 (egcs/gcc-objc-2.95.1.tar.bz2) = fb61517ff909730a94c9d42faf78bc96f5d52a97
|
||||
MD5 (egcs/gcc-3.0.tar.gz) = 145e82e04d286f60f7e55b5dbe567732
|
||||
RMD160 (egcs/gcc-3.0.tar.gz) = abc403948bd13d2b49e790ea22323808d80e346e
|
||||
SHA1 (egcs/gcc-3.0.tar.gz) = ddf63f347f1746053af27108a023a6b09c2fcd65
|
||||
|
@ -1,16 +0,0 @@
|
||||
--- gcc/cpp.texi.orig Tue Jun 23 10:35:51 1998
|
||||
+++ gcc/cpp.texi Tue Oct 13 14:28:51 1998
|
||||
@@ -1,11 +1,11 @@
|
||||
\input texinfo
|
||||
-@setfilename cpp.info
|
||||
+@setfilename ecpp.info
|
||||
@settitle The C Preprocessor
|
||||
|
||||
@ifinfo
|
||||
@dircategory Programming
|
||||
@direntry
|
||||
-* Cpp: (cpp). The GNU C preprocessor.
|
||||
+* ECpp: (ecpp). The experimental GNU C preprocessor.
|
||||
@end direntry
|
||||
@end ifinfo
|
||||
|
@ -1,19 +0,0 @@
|
||||
--- gcc/gcc.texi.orig Mon Aug 9 08:47:01 1999
|
||||
+++ gcc/gcc.texi Mon Sep 6 17:05:19 1999
|
||||
@@ -1,6 +1,6 @@
|
||||
\input texinfo @c -*-texinfo-*-
|
||||
@c %**start of header
|
||||
-@setfilename gcc.info
|
||||
+@setfilename egcc.info
|
||||
@c @setfilename usegcc.info
|
||||
@c @setfilename portgcc.info
|
||||
@c To produce the full manual, use the "gcc.info" setfilename, and
|
||||
@@ -82,7 +82,7 @@
|
||||
@ifinfo
|
||||
@dircategory Programming
|
||||
@direntry
|
||||
-* gcc: (gcc). The GNU Compiler Collection.
|
||||
+* egcc: (egcc). The GNU Compiler Collection.
|
||||
@end direntry
|
||||
@ifset INTERNALS
|
||||
@ifset USING
|
@ -1,18 +0,0 @@
|
||||
--- gcc/config/i386/openbsd.h.orig Wed Mar 24 03:27:17 1999
|
||||
+++ gcc/config/i386/openbsd.h Wed Mar 24 03:30:16 1999
|
||||
@@ -24,6 +24,15 @@
|
||||
|
||||
#include <i386/gstabs.h>
|
||||
|
||||
+/* Remove when the math-emulator is fixed. */
|
||||
+/* XXX i386 TARGET_DEFAULT/TARGET_CPU_DEFAULT is weird...
|
||||
+ This must be defined as TARGET_DEFAULT, and after including gstab.h
|
||||
+ to override unix.h TARGET_DEFAULT definition.
|
||||
+ In effect, this add MASK_NO_FANCY_MATH_387 to the usual definition. */
|
||||
+#undef TARGET_DEFAULT
|
||||
+#define TARGET_DEFAULT \
|
||||
+ (MASK_NO_FANCY_MATH_387 | MASK_80387 | MASK_IEEE_FP | MASK_FLOAT_RETURNS)
|
||||
+
|
||||
/* Get perform_* macros to build libgcc.a. */
|
||||
#include <i386/perform.h>
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- gcc/configure.in.orig Wed Jul 14 02:39:26 1999
|
||||
+++ gcc/configure.in Mon Sep 6 17:07:31 1999
|
||||
@@ -1165,6 +1165,8 @@
|
||||
changequote(,)dnl
|
||||
i[34567]86-*-openbsd*)
|
||||
changequote([,])dnl
|
||||
+ # Remove when the math emulator is fixed
|
||||
+ target_cpu_default="MASK_NO_FANCY_MATH_387"
|
||||
# we need collect2 until our bug is fixed...
|
||||
use_collect2=yes
|
||||
;;
|
@ -1,15 +0,0 @@
|
||||
--- gcc/tlink.c.orig Tue Aug 31 21:51:58 1999
|
||||
+++ gcc/tlink.c Tue Aug 31 21:55:17 1999
|
||||
@@ -654,7 +654,11 @@ scan_linker_output (fname)
|
||||
if (dem)
|
||||
sym = symbol_hash_lookup (dem->mangled, false);
|
||||
else
|
||||
- sym = symbol_hash_lookup (p, false);
|
||||
+ {
|
||||
+ if (*p == '_' && prepends_underscore)
|
||||
+ ++p;
|
||||
+ sym = symbol_hash_lookup (p, false);
|
||||
+ }
|
||||
}
|
||||
}
|
||||
|
@ -1,75 +0,0 @@
|
||||
--- gcc/Makefile.in.orig Fri Aug 13 09:46:55 1999
|
||||
+++ gcc/Makefile.in Mon Sep 6 17:09:06 1999
|
||||
@@ -482,6 +482,10 @@
|
||||
UNPROTOIZE_INSTALL_NAME = `t='$(program_transform_name)'; echo unprotoize | sed -e $$t`
|
||||
GCOV_INSTALL_NAME = `t='$(program_transform_name)'; echo gcov | sed -e $$t`
|
||||
|
||||
+# documentation for cpp should not supersede default documentation
|
||||
+CPP_INFO_NAME = `t='$(program_transform_name)'; echo cpp | sed -e $$t`
|
||||
+CPP_MAN_NAME = `t='$(program_transform_name)'; echo cccp | sed -e $$t`
|
||||
+
|
||||
# Actual name to use when installing a cross-compiler.
|
||||
GCC_CROSS_NAME = `t='$(program_transform_cross_name)'; echo gcc | sed -e $$t`
|
||||
PROTOIZE_CROSS_NAME = `t='$(program_transform_cross_name)'; echo protoize | sed -e $$t`
|
||||
@@ -2268,12 +2272,14 @@
|
||||
info: cpp.info gcc.info lang.info
|
||||
|
||||
cpp.info: $(srcdir)/cpp.texi
|
||||
- $(MAKEINFO) $(MAKEINFOFLAGS) -I$(srcdir) -o cpp.info $(srcdir)/cpp.texi
|
||||
+ $(MAKEINFO) $(MAKEINFOFLAGS) -I$(srcdir) -o $(CPP_INFO_NAME).info \
|
||||
+ $(srcdir)/cpp.texi && touch cpp.info
|
||||
|
||||
gcc.info: $(srcdir)/gcc.texi $(srcdir)/extend.texi $(srcdir)/install.texi \
|
||||
$(srcdir)/invoke.texi $(srcdir)/md.texi $(srcdir)/rtl.texi \
|
||||
$(srcdir)/tm.texi $(srcdir)/gcov.texi
|
||||
- $(MAKEINFO) $(MAKEINFOFLAGS) -I$(srcdir) -o gcc.info $(srcdir)/gcc.texi
|
||||
+ $(MAKEINFO) $(MAKEINFOFLAGS) -I$(srcdir) -o $(GCC_INSTALL_NAME).info \
|
||||
+ $(srcdir)/gcc.texi && touch gcc.info
|
||||
|
||||
dvi: gcc.dvi cpp.dvi lang.dvi
|
||||
|
||||
@@ -2420,6 +2426,7 @@
|
||||
-rm -f cexp.c cexp.output TAGS
|
||||
-rm -f cpp.info* cpp.??s cpp.*aux
|
||||
-rm -f gcc.info* gcc.??s gcc.*aux
|
||||
+ -rm -f $(GCC_INSTALL_NAME).info* $(CPP_INFO_NAME).info*
|
||||
#
|
||||
# Entry points `install' and `uninstall'.
|
||||
# Also use `install-collect2' to install collect2 when the config files don't.
|
||||
@@ -2575,18 +2582,19 @@
|
||||
# $(INSTALL_DATA) might be a relative pathname, so we can't cd into srcdir
|
||||
# to do the install.
|
||||
install-info: doc installdirs lang.install-info
|
||||
- -rm -f $(infodir)/cpp.info* $(infodir)/gcc.info*
|
||||
- for f in cpp.info* gcc.info*; do \
|
||||
+ -rm -f $(infodir)/$(CPP_INFO_NAME).info* \
|
||||
+ $(infodir)/$(GCC_INSTALL_NAME).info*
|
||||
+ for f in $(GCC_INSTALL_NAME).info* $(CPP_INFO_NAME).info*; do \
|
||||
$(INSTALL_DATA) $$f $(infodir)/$$f; \
|
||||
done
|
||||
-if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
|
||||
if [ -f $(infodir)/dir ] ; then \
|
||||
- for f in cpp.info gcc.info; do \
|
||||
+ for f in $(GCC_INSTALL_NAME).info $(CPP_INFO_NAME).info; do \
|
||||
install-info --dir-file=$(infodir)/dir $(infodir)/$$f; \
|
||||
done; \
|
||||
else true; fi; \
|
||||
else true; fi;
|
||||
- -chmod a-x $(infodir)/cpp.info* $(infodir)/gcc.info*
|
||||
+ -chmod a-x $(infodir)/$(CPP_INFO_NAME).info* $(infodir)/$(GCC_INSTALL_NAME).info*
|
||||
|
||||
# Install the man pages.
|
||||
install-man: installdirs $(srcdir)/gcc.1 $(srcdir)/cccp.1 lang.install-man
|
||||
@@ -2599,9 +2607,9 @@
|
||||
$(INSTALL_DATA) $(srcdir)/gcc.1 $(man1dir)/$(GCC_INSTALL_NAME)$(manext); \
|
||||
chmod a-x $(man1dir)/$(GCC_INSTALL_NAME)$(manext); \
|
||||
fi
|
||||
- -rm -f $(man1dir)/cccp$(manext)
|
||||
- -$(INSTALL_DATA) $(srcdir)/cccp.1 $(man1dir)/cccp$(manext)
|
||||
- -chmod a-x $(man1dir)/cccp$(manext)
|
||||
+ -rm -f $(man1dir)/$(CPP_MAN_NAME)$(manext)
|
||||
+ -$(INSTALL_DATA) $(srcdir)/cccp.1 $(man1dir)/$(CPP_MAN_NAME)$(manext)
|
||||
+ -chmod a-x $(man1dir)/$(CPP_MAN_NAME)$(manext)
|
||||
|
||||
# Install the library.
|
||||
install-libgcc: libgcc.a installdirs
|
@ -1,212 +0,0 @@
|
||||
--- gcc/config/rs6000/sysv4.h.orig Mon Apr 12 20:22:02 1999
|
||||
+++ gcc/config/rs6000/sysv4.h Sat Apr 17 01:59:58 1999
|
||||
@@ -161,6 +161,8 @@
|
||||
rs6000_current_abi = ABI_NT; \
|
||||
else if (!strcmp (rs6000_abi_name, "linux")) \
|
||||
rs6000_current_abi = ABI_V4; \
|
||||
+ else if (!strcmp (rs6000_abi_name, "openbsd")) \
|
||||
+ rs6000_current_abi = ABI_V4; \
|
||||
else if (!strcmp (rs6000_abi_name, "solaris")) \
|
||||
rs6000_current_abi = ABI_SOLARIS; \
|
||||
else \
|
||||
@@ -973,6 +975,7 @@
|
||||
%{mlittle} %{mlittle-endian} %{mbig} %{mbig-endian} \
|
||||
%{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: \
|
||||
%{mcall-solaris: -mlittle -msolaris} \
|
||||
+ %{mcall-openbsd: -mbig} \
|
||||
%{mcall-linux: -mbig} }}}}"
|
||||
|
||||
#ifndef CC1_ENDIAN_BIG_SPEC
|
||||
@@ -999,6 +1002,7 @@
|
||||
%{mcall-aixdesc: -mbig %{cc1_endian_big} } \
|
||||
%{mcall-solaris: -mlittle %{cc1_endian_little} } \
|
||||
%{mcall-linux: -mbig %{cc1_endian_big} } \
|
||||
+ %{mcall-openbsd: -mbig %{cc1_endian_big} } \
|
||||
%{!mcall-nt: %{!mcall-aixdesc: %{!mcall-solaris: %{!mcall-linux: \
|
||||
%(cc1_endian_default) \
|
||||
}}}} \
|
||||
@@ -1008,7 +1012,8 @@
|
||||
%{!meabi: %{!mno-eabi: \
|
||||
%{mrelocatable: -meabi } \
|
||||
%{mcall-solaris: -mno-eabi } \
|
||||
- %{mcall-linux: -mno-eabi }}} \
|
||||
+ %{mcall-linux: -mno-eabi } \
|
||||
+ %{mcall-openbsd: -mno-eabi }}} \
|
||||
%{msdata: -msdata=default} \
|
||||
%{mno-sdata: -msdata=none}"
|
||||
|
||||
@@ -1038,8 +1043,9 @@
|
||||
%{mmvme: %(link_start_mvme) } \
|
||||
%{msim: %(link_start_sim) } \
|
||||
%{mcall-linux: %(link_start_linux) } \
|
||||
+%{mcall-openbsd: %(link_start_openbsd) } \
|
||||
%{mcall-solaris: %(link_start_solaris) } \
|
||||
-%{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mcall-linux: %{!mcall-solaris: %(link_start_default) }}}}}}"
|
||||
+%{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mcall-linux: %{!mcall-openbsd: %{!mcall-solaris: %(link_start_default) }}}}}}}"
|
||||
#endif
|
||||
|
||||
#ifndef LINK_START_DEFAULT_SPEC
|
||||
@@ -1095,8 +1101,9 @@
|
||||
%{mmvme: %(link_os_mvme) } \
|
||||
%{msim: %(link_os_sim) } \
|
||||
%{mcall-linux: %(link_os_linux) } \
|
||||
+%{mcall-openbsd: %(link_os_openbsd) } \
|
||||
%{mcall-solaris: %(link_os_solaris) } \
|
||||
-%{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mcall-linux: %{!mcall-solaris: %(link_os_default) }}}}}}"
|
||||
+%{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mcall-linux: %{!mcall-openbsd: %{!mcall-solaris: %(link_os_default) }}}}}}}"
|
||||
#endif
|
||||
|
||||
#ifndef LINK_OS_DEFAULT_SPEC
|
||||
@@ -1139,8 +1146,9 @@
|
||||
%{mcall-solaris: %(cpp_endian_solaris) } \
|
||||
%{mcall-nt: %(cpp_endian_little) } \
|
||||
%{mcall-linux: %(cpp_endian_big) } \
|
||||
+ %{mcall-openbsd: %(cpp_endian_big) } \
|
||||
%{mcall-aixdesc: %(cpp_endian_big) } \
|
||||
- %{!mcall-solaris: %{!mcall-linux: %{!mcall-nt: %{!mcall-aixdesc: %(cpp_endian_default) }}}}}}}}"
|
||||
+ %{!mcall-solaris: %{!mcall-linux: %{!mcall-openbsd: %{!mcall-nt: %{!mcall-aixdesc: %(cpp_endian_default) }}}}}}}}}"
|
||||
|
||||
#undef CPP_ENDIAN_DEFAULT_SPEC
|
||||
#define CPP_ENDIAN_DEFAULT_SPEC "%(cpp_endian_big)"
|
||||
@@ -1152,8 +1160,9 @@
|
||||
%{mmvme: %(cpp_os_mvme) } \
|
||||
%{msim: %(cpp_os_sim) } \
|
||||
%{mcall-linux: %(cpp_os_linux) } \
|
||||
+%{mcall-openbsd: %(cpp_os_linux) } \
|
||||
%{mcall-solaris: %(cpp_os_solaris) } \
|
||||
-%{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mcall-linux: %{!mcall-solaris: %(cpp_os_default) }}}}}}"
|
||||
+%{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mcall-linux: %{!mcall-openbsd: %{!mcall-solaris: %(cpp_os_default) }}}}}}}"
|
||||
|
||||
#ifndef CPP_OS_DEFAULT_SPEC
|
||||
#define CPP_OS_DEFAULT_SPEC ""
|
||||
@@ -1166,8 +1175,9 @@
|
||||
%{mmvme: %(startfile_mvme) } \
|
||||
%{msim: %(startfile_sim) } \
|
||||
%{mcall-linux: %(startfile_linux) } \
|
||||
+%{mcall-openbsd: %(startfile_openbsd) } \
|
||||
%{mcall-solaris: %(startfile_solaris) } \
|
||||
-%{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mcall-linux: %{!mcall-solaris: %(startfile_default) }}}}}}"
|
||||
+%{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mcall-linux: %{!mcall-openbsd: %{!mcall-solaris: %(startfile_default) }}}}}}}"
|
||||
|
||||
#undef STARTFILE_DEFAULT_SPEC
|
||||
#define STARTFILE_DEFAULT_SPEC ""
|
||||
@@ -1179,8 +1189,9 @@
|
||||
%{mmvme: %(lib_mvme) } \
|
||||
%{msim: %(lib_sim) } \
|
||||
%{mcall-linux: %(lib_linux) } \
|
||||
+%{mcall-openbsd: %(lib_openbsd) } \
|
||||
%{mcall-solaris: %(lib_solaris) } \
|
||||
-%{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mcall-linux: %{!mcall-solaris: %(lib_default) }}}}}}"
|
||||
+%{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mcall-linux: %{!mcall-openbsd: %{!mcall-solaris: %(lib_default) }}}}}}}"
|
||||
|
||||
#undef LIBGCC_SPEC
|
||||
#define LIBGCC_SPEC "libgcc.a%s"
|
||||
@@ -1196,8 +1207,9 @@
|
||||
%{mmvme: ecrtn.o%s} \
|
||||
%{msim: ecrtn.o%s} \
|
||||
%{mcall-linux: %(endfile_linux) } \
|
||||
+%{mcall-openbsd: %(endfile_openbsd) } \
|
||||
%{mcall-solaris: scrtn.o%s} \
|
||||
-%{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mcall-linux: %{!mcall-solaris: %(endfile_default) }}}}}}"
|
||||
+%{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mcall-linux: %{!mcall-openbsd: %{!mcall-solaris: %(endfile_default) }}}}}}}"
|
||||
|
||||
#undef ENDFILE_DEFAULT_SPEC
|
||||
#define ENDFILE_DEFAULT_SPEC ""
|
||||
@@ -1334,6 +1346,48 @@
|
||||
-Asystem(unix) -Asystem(posix)"
|
||||
#endif
|
||||
|
||||
+/* OpenBSD support. */
|
||||
+#ifndef LIB_OPENBSD_SPEC
|
||||
+#define LIB_OPENBSD_SPEC "%{mnewlib: --start-group -lopenbsd %(libc_openbsd) --end-group } %{!mnewlib: %(libc_openbsd) }"
|
||||
+#endif
|
||||
+
|
||||
+#ifndef LIBC_OPENBSD_SPEC
|
||||
+#define LIBC_OPENBSD_SPEC "-lc%{pthread_r}%{p:_p}%{!p:%{pg:_p}}"
|
||||
+#endif
|
||||
+
|
||||
+#ifndef STARTFILE_OPENBSD_SPEC
|
||||
+#define STARTFILE_OPENBSD_SPEC "\
|
||||
+%{!shared: %{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt0.o%s}}} \
|
||||
+%{mnewlib: ecrti.o%s} \
|
||||
+%{!mnewlib: %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}"
|
||||
+#endif
|
||||
+/*
|
||||
+%{!mnewlib: crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}"
|
||||
+*/
|
||||
+
|
||||
+#ifndef ENDFILE_OPENBSD_SPEC
|
||||
+#define ENDFILE_OPENBSD_SPEC "\
|
||||
+%{mnewlib: ecrtn.o%s} \
|
||||
+%{!mnewlib: %{!shared:crtend.o%s} %{shared:crtendS.o%s}}"
|
||||
+#endif
|
||||
+/*
|
||||
+%{!mnewlib: %{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s}"
|
||||
+*/
|
||||
+
|
||||
+#ifndef LINK_START_OPENBSD_SPEC
|
||||
+#define LINK_START_OPENBSD_SPEC "-Ttext 0x400074"
|
||||
+#endif
|
||||
+
|
||||
+#ifndef LINK_OS_OPENBSD_SPEC
|
||||
+#define LINK_OS_OPENBSD_SPEC ""
|
||||
+#endif
|
||||
+
|
||||
+#ifndef CPP_OS_OPENBSD_SPEC
|
||||
+#define CPP_OS_OPENBSD_SPEC "-D__unix__ -D__OpenBSD__ \
|
||||
+%{!ansi: -Dunix } \
|
||||
+%{pthread:-D_POSIX_THREADS} \
|
||||
+-Asystem(unix) -Asystem(OpenBSD)"
|
||||
+ #endif
|
||||
/* Solaris support. */
|
||||
/* For Solaris, Gcc automatically adds in one of the files
|
||||
/usr/ccs/lib/values-Xc.o, /usr/ccs/lib/values-Xa.o, or
|
||||
@@ -1398,6 +1452,8 @@
|
||||
{ "lib_mvme", LIB_MVME_SPEC }, \
|
||||
{ "lib_sim", LIB_SIM_SPEC }, \
|
||||
{ "lib_linux", LIB_LINUX_SPEC }, \
|
||||
+ { "lib_openbsd", LIB_OPENBSD_SPEC }, \
|
||||
+ { "libc_openbsd", LIBC_OPENBSD_SPEC }, \
|
||||
{ "lib_solaris", LIB_SOLARIS_SPEC }, \
|
||||
{ "lib_default", LIB_DEFAULT_SPEC }, \
|
||||
{ "startfile_ads", STARTFILE_ADS_SPEC }, \
|
||||
@@ -1405,6 +1461,7 @@
|
||||
{ "startfile_mvme", STARTFILE_MVME_SPEC }, \
|
||||
{ "startfile_sim", STARTFILE_SIM_SPEC }, \
|
||||
{ "startfile_linux", STARTFILE_LINUX_SPEC }, \
|
||||
+ { "startfile_openbsd", STARTFILE_OPENBSD_SPEC }, \
|
||||
{ "startfile_solaris", STARTFILE_SOLARIS_SPEC }, \
|
||||
{ "startfile_default", STARTFILE_DEFAULT_SPEC }, \
|
||||
{ "endfile_ads", ENDFILE_ADS_SPEC }, \
|
||||
@@ -1412,6 +1469,7 @@
|
||||
{ "endfile_mvme", ENDFILE_MVME_SPEC }, \
|
||||
{ "endfile_sim", ENDFILE_SIM_SPEC }, \
|
||||
{ "endfile_linux", ENDFILE_LINUX_SPEC }, \
|
||||
+ { "endfile_openbsd", ENDFILE_OPENBSD_SPEC }, \
|
||||
{ "endfile_solaris", ENDFILE_SOLARIS_SPEC }, \
|
||||
{ "endfile_default", ENDFILE_DEFAULT_SPEC }, \
|
||||
{ "link_path", LINK_PATH_SPEC }, \
|
||||
@@ -1423,6 +1481,7 @@
|
||||
{ "link_start_mvme", LINK_START_MVME_SPEC }, \
|
||||
{ "link_start_sim", LINK_START_SIM_SPEC }, \
|
||||
{ "link_start_linux", LINK_START_LINUX_SPEC }, \
|
||||
+ { "link_start_openbsd", LINK_START_OPENBSD_SPEC }, \
|
||||
{ "link_start_solaris", LINK_START_SOLARIS_SPEC }, \
|
||||
{ "link_start_default", LINK_START_DEFAULT_SPEC }, \
|
||||
{ "link_os", LINK_OS_SPEC }, \
|
||||
@@ -1431,6 +1490,7 @@
|
||||
{ "link_os_mvme", LINK_OS_MVME_SPEC }, \
|
||||
{ "link_os_sim", LINK_OS_SIM_SPEC }, \
|
||||
{ "link_os_linux", LINK_OS_LINUX_SPEC }, \
|
||||
+ { "link_os_openbsd", LINK_OS_OPENBSD_SPEC }, \
|
||||
{ "link_os_solaris", LINK_OS_SOLARIS_SPEC }, \
|
||||
{ "link_os_default", LINK_OS_DEFAULT_SPEC }, \
|
||||
{ "cc1_endian_big", CC1_ENDIAN_BIG_SPEC }, \
|
||||
@@ -1444,6 +1504,7 @@
|
||||
{ "cpp_os_mvme", CPP_OS_MVME_SPEC }, \
|
||||
{ "cpp_os_sim", CPP_OS_SIM_SPEC }, \
|
||||
{ "cpp_os_linux", CPP_OS_LINUX_SPEC }, \
|
||||
+ { "cpp_os_openbsd", CPP_OS_OPENBSD_SPEC }, \
|
||||
{ "cpp_os_solaris", CPP_OS_SOLARIS_SPEC }, \
|
||||
{ "cpp_os_default", CPP_OS_DEFAULT_SPEC },
|
||||
|
@ -1,20 +0,0 @@
|
||||
--- gcc/config/openbsd.h.orig Thu Aug 26 22:30:52 1999
|
||||
+++ gcc/config/openbsd.h Thu Aug 26 22:31:37 1999
|
||||
@@ -165,13 +165,16 @@
|
||||
|
||||
/* OpenBSD assembler is hacked to have .type & .size support even in a.out
|
||||
format object files. Functions size are supported but not activated
|
||||
- yet (look for GRACE_PERIOD_EXPIRED in gas/config/obj-aout.c). */
|
||||
+ yet (look for GRACE_PERIOD_EXPIRED in gas/config/obj-aout.c).
|
||||
+ SET_ASM_OP is needed for attribute alias to work. */
|
||||
|
||||
#undef TYPE_ASM_OP
|
||||
#undef SIZE_ASM_OP
|
||||
+#undef SET_ASM_OP
|
||||
|
||||
#define TYPE_ASM_OP ".type"
|
||||
#define SIZE_ASM_OP ".size"
|
||||
+#define SET_ASM_OP ".set"
|
||||
|
||||
/* The following macro defines the format used to output the second
|
||||
operand of the .type assembler directive. */
|
@ -1,11 +0,0 @@
|
||||
--- gcc/config/t-openbsd-thread.orig Mon Mar 22 15:45:47 1999
|
||||
+++ gcc/config/t-openbsd-thread Mon Mar 22 15:46:23 1999
|
||||
@@ -1,5 +1,4 @@
|
||||
-# This is currently needed to compile libgcc2 for threads support
|
||||
-TARGET_LIBGCC2_CFLAGS=-pthread
|
||||
-#T_CFLAGS=-pthread
|
||||
-#T_CPPFLAGS=-pthread
|
||||
+# We need T_CFLAGS everywhere thanks to objc thread support
|
||||
+T_CFLAGS=-pthread
|
||||
+T_CPPFLAGS=-pthread
|
||||
|
19
lang/egcs/stable/patches/patch-fastjar_configure_in
Normal file
19
lang/egcs/stable/patches/patch-fastjar_configure_in
Normal file
@ -0,0 +1,19 @@
|
||||
$OpenBSD: patch-fastjar_configure_in,v 1.1 2001/07/04 15:07:31 espie Exp $
|
||||
--- fastjar/configure.in.orig Wed Jul 4 10:32:11 2001
|
||||
+++ fastjar/configure.in Wed Jul 4 10:32:49 2001
|
||||
@@ -38,9 +38,12 @@ dnl Check byte order
|
||||
AC_C_BIGENDIAN
|
||||
|
||||
dnl Brain dead check for tree's zlib
|
||||
-ZDEPS='$(top_builddir)/../zlib/libz.a'
|
||||
-ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
|
||||
-ZINCS='-I$(top_srcdir)/../zlib'
|
||||
+dnl ZDEPS='$(top_builddir)/../zlib/libz.a'
|
||||
+dnl ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
|
||||
+dnl ZINCS='-I$(top_srcdir)/../zlib'
|
||||
+ZDEPS=''
|
||||
+ZINCS=/usr/include
|
||||
+ZLIBS=-lz
|
||||
AC_SUBST(ZLIBS)
|
||||
AC_SUBST(ZDEPS)
|
||||
AC_SUBST(ZINCS)
|
@ -1,11 +0,0 @@
|
||||
--- libstdc++/config/openbsd.ml.orig Mon Apr 26 03:30:37 1999
|
||||
+++ libstdc++/config/openbsd.ml Mon Sep 6 17:11:21 1999
|
||||
@@ -1,5 +1,8 @@
|
||||
# Base shared lib for OpenBSD i386
|
||||
|
||||
+INTERFACE=2
|
||||
+MAJOR_OFFSET=28
|
||||
+MSHLINK = libstdc++.so.`expr $(INTERFACE) + $(MAJOR_OFFSET)`.0
|
||||
LIBS = $(ARLIB) $(ARLINK) $(SHLIB) $(SHLINK) mshlink
|
||||
SHFLAGS = -nostdlib -Wl,-Bshareable,-Bforcearchive
|
||||
SHDEPS = -lm
|
@ -1,7 +0,0 @@
|
||||
--- libstdc++/config/openbsd.mt.orig Tue Mar 23 13:16:27 1999
|
||||
+++ libstdc++/config/openbsd.mt Tue Mar 23 13:16:51 1999
|
||||
@@ -1,3 +1,3 @@
|
||||
# tell we want the mt-safe version
|
||||
-MT_CFLAGS = -D_IO_MTSAFE_IO -D_PTHREADS
|
||||
+MT_CFLAGS = -D_IO_MTSAFE_IO -D_PTHREADS -pthread
|
||||
|
@ -1,19 +0,0 @@
|
||||
--- gcc/f/g77.texi.orig Mon Jun 21 13:58:54 1999
|
||||
+++ gcc/f/g77.texi Mon Sep 6 17:13:11 1999
|
||||
@@ -1,6 +1,6 @@
|
||||
\input texinfo @c -*-texinfo-*-
|
||||
@c %**start of header
|
||||
-@setfilename g77.info
|
||||
+@setfilename eg77.info
|
||||
|
||||
@set last-update 1999-06-06
|
||||
@set copyrights-g77 1995-1999
|
||||
@@ -73,7 +73,7 @@
|
||||
@ifinfo
|
||||
@dircategory Programming
|
||||
@direntry
|
||||
-* g77: (g77). The GNU Fortran compiler.
|
||||
+* eg77: (eg77). The experimental GNU Fortran compiler.
|
||||
@end direntry
|
||||
@ifset INTERNALS
|
||||
@ifset USING
|
@ -1,34 +0,0 @@
|
||||
--- gcc/f/Make-lang.in.orig Mon Jun 7 08:44:57 1999
|
||||
+++ gcc/f/Make-lang.in Mon Sep 6 17:14:47 1999
|
||||
@@ -229,7 +229,7 @@
|
||||
esac
|
||||
if [ -f lang-f77 ]; then \
|
||||
rm -f $(srcdir)/f/g77.info-*; \
|
||||
- $(MAKEINFO) -I$(srcdir)/f -o f/g77.info $(srcdir)/f/g77.texi; \
|
||||
+ $(MAKEINFO) -I$(srcdir)/f -o f/${G77_INSTALL_NAME}.info $(srcdir)/f/g77.texi && touch $@; \
|
||||
else true; fi
|
||||
|
||||
f/g77.dvi: $(srcdir)/f/g77.texi $(srcdir)/f/bugs.texi \
|
||||
@@ -347,17 +347,17 @@
|
||||
*) rm -f $(libsubdir)/lang-f77;; \
|
||||
esac
|
||||
if [ -f $(libsubdir)/lang-f77 -a -f f/g77.info ] ; then \
|
||||
- rm -f $(infodir)/g77.info*; \
|
||||
- for f in f/g77.info*; do \
|
||||
+ rm -f $(infodir)/$(G77_INSTALL_NAME).info*; \
|
||||
+ for f in f/$(G77_INSTALL_NAME).info*; do \
|
||||
realfile=`echo $$f | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
|
||||
$(INSTALL_DATA) $$f $(infodir)/$$realfile; \
|
||||
done; \
|
||||
- chmod a-x $(infodir)/g77.info*; \
|
||||
+ chmod a-x $(infodir)/$(G77_INSTALL_NAME).info*; \
|
||||
else true; fi
|
||||
@if [ -f $(libsubdir)/lang-f77 -a -f $(srcdir)/f/g77.info ] ; then \
|
||||
if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
|
||||
- echo " install-info --info-dir=$(infodir) $(infodir)/g77.info"; \
|
||||
- install-info --info-dir=$(infodir) $(infodir)/g77.info || : ; \
|
||||
+ echo " install-info --info-dir=$(infodir) $(infodir)/$(G77_INSTALL_NAME).info"; \
|
||||
+ install-info --info-dir=$(infodir) $(infodir)/$(G77_INSTALL_NAME).info || : ; \
|
||||
else : ; fi; \
|
||||
else : ; fi
|
||||
rm -f $(libsubdir)/lang-f77
|
22
lang/egcs/stable/patches/patch-libstdc++-v3-configure_in
Normal file
22
lang/egcs/stable/patches/patch-libstdc++-v3-configure_in
Normal file
@ -0,0 +1,22 @@
|
||||
Current snapshots won't build on many bsd systems without the following
|
||||
patch, as machine/endian.h cannot be included without including sys/types.h
|
||||
first.
|
||||
|
||||
|
||||
2000-12-27 Marc Espie <espie@openbsd.org>
|
||||
* configure.in: Check for sys/types.h.
|
||||
* configure: Rebuild.
|
||||
* libmath/mathconf.h: Include sys/types.h prior to
|
||||
machine/endian.h if available.
|
||||
|
||||
--- libstdc++-v3/configure.in.orig Thu Jun 14 10:47:35 2001
|
||||
+++ libstdc++-v3/configure.in Wed Jul 4 14:25:37 2001
|
||||
@@ -204,7 +204,7 @@ else
|
||||
|
||||
# Check for available headers.
|
||||
AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
|
||||
- machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h])
|
||||
+ machine/param.h sys/machine.h sys/types.h fp.h locale.h float.h inttypes.h gconv.h])
|
||||
|
||||
GLIBCPP_CHECK_COMPILER_FEATURES
|
||||
GLIBCPP_CHECK_LINKER_FEATURES
|
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-libstdc++-v3_libmath_mathconf_h,v 1.1 2001/07/04 15:07:32 espie Exp $
|
||||
--- libstdc++-v3/libmath/mathconf.h.orig Sun Feb 25 10:25:42 2001
|
||||
+++ libstdc++-v3/libmath/mathconf.h Wed Jul 4 14:25:37 2001
|
||||
@@ -34,6 +34,9 @@
|
||||
# include <endian.h>
|
||||
#else
|
||||
# ifdef _GLIBCPP_HAVE_MACHINE_ENDIAN_H
|
||||
+# ifdef _GLIBCPP_HAVE_SYS_TYPES_H
|
||||
+# include <sys/types.h>
|
||||
+# endif
|
||||
# include <machine/endian.h>
|
||||
# else
|
||||
# ifdef _GLIBCPP_HAVE_SYS_MACHINE_H
|
@ -0,0 +1,70 @@
|
||||
$OpenBSD: patch-libstdc++-v3_libsupc++_Makefile_in,v 1.1 2001/07/04 15:07:32 espie Exp $
|
||||
--- libstdc++-v3/libsupc++/Makefile.in.orig Wed Jul 4 15:25:50 2001
|
||||
+++ libstdc++-v3/libsupc++/Makefile.in Wed Jul 4 15:26:51 2001
|
||||
@@ -32,7 +32,7 @@ mandir = @mandir@
|
||||
includedir = @includedir@
|
||||
oldincludedir = /usr/include
|
||||
|
||||
-DESTDIR =
|
||||
+# DESTDIR =
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
@@ -273,18 +273,18 @@ maintainer-clean-toolexeclibLTLIBRARIES:
|
||||
|
||||
install-toolexeclibLTLIBRARIES: $(toolexeclib_LTLIBRARIES)
|
||||
@$(NORMAL_INSTALL)
|
||||
- $(mkinstalldirs) $(DESTDIR)$(toolexeclibdir)
|
||||
+ $(mkinstalldirs) $(toolexeclibdir)
|
||||
@list='$(toolexeclib_LTLIBRARIES)'; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
- echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(toolexeclibdir)/$$p"; \
|
||||
- $(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(toolexeclibdir)/$$p; \
|
||||
+ echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(toolexeclibdir)/$$p"; \
|
||||
+ $(LIBTOOL) --mode=install $(INSTALL) $$p $(toolexeclibdir)/$$p; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
uninstall-toolexeclibLTLIBRARIES:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
list='$(toolexeclib_LTLIBRARIES)'; for p in $$list; do \
|
||||
- $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(toolexeclibdir)/$$p; \
|
||||
+ $(LIBTOOL) --mode=uninstall rm -f $(toolexeclibdir)/$$p; \
|
||||
done
|
||||
|
||||
.c.o:
|
||||
@@ -414,8 +414,8 @@ all-redirect: all-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||
installdirs:
|
||||
- $(mkinstalldirs) $(DESTDIR)$(toolexeclibdir) \
|
||||
- $(DESTDIR)$(glibcppinstalldir)
|
||||
+ $(mkinstalldirs) $(toolexeclibdir) \
|
||||
+ $(glibcppinstalldir)
|
||||
|
||||
|
||||
mostlyclean-generic:
|
||||
@@ -479,19 +479,19 @@ maintainer-clean-generic clean mostlycle
|
||||
# prepending each of $(glibcppinstall_HEADERS) with VPATH below.
|
||||
install-glibcppinstallHEADERS: $(glibcppinstall_HEADERS)
|
||||
@$(NORMAL_INSTALL)
|
||||
- $(mkinstalldirs) $(DESTDIR)$(glibcppinstalldir)
|
||||
+ $(mkinstalldirs) $(glibcppinstalldir)
|
||||
@list='$(glibcppinstall_HEADERS)'; for p in $$list; do \
|
||||
q=`echo $$p | sed -e 's,.*/,,'`; \
|
||||
if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
|
||||
- echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(glibcppinstalldir)/$$q"; \
|
||||
- $(INSTALL_DATA) $$d$$p $(DESTDIR)$(glibcppinstalldir)/$$q; \
|
||||
+ echo " $(INSTALL_DATA) $$d$$p $(glibcppinstalldir)/$$q"; \
|
||||
+ $(INSTALL_DATA) $$d$$p $(glibcppinstalldir)/$$q; \
|
||||
done
|
||||
|
||||
uninstall-glibcppinstallHEADERS:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
list='$(glibcppinstall_HEADERS)'; for p in $$list; do \
|
||||
q=`echo $$p | sed -e 's,.*/,,'`; \
|
||||
- rm -f $(DESTDIR)$(glibcppinstalldir)/$$q; \
|
||||
+ rm -f $(glibcppinstalldir)/$$q; \
|
||||
done
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
59
lang/egcs/stable/patches/patch-libstdc++-v3_src_Makefile_in
Normal file
59
lang/egcs/stable/patches/patch-libstdc++-v3_src_Makefile_in
Normal file
@ -0,0 +1,59 @@
|
||||
$OpenBSD: patch-libstdc++-v3_src_Makefile_in,v 1.1 2001/07/04 15:07:32 espie Exp $
|
||||
--- libstdc++-v3/src/Makefile.in.orig Fri Jun 8 22:09:30 2001
|
||||
+++ libstdc++-v3/src/Makefile.in Wed Jul 4 14:25:37 2001
|
||||
@@ -33,7 +33,7 @@ mandir = @mandir@
|
||||
includedir = @includedir@
|
||||
oldincludedir = /usr/include
|
||||
|
||||
-DESTDIR =
|
||||
+# DESTDIR =
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
@@ -284,18 +284,18 @@ maintainer-clean-toolexeclibLTLIBRARIES:
|
||||
|
||||
install-toolexeclibLTLIBRARIES: $(toolexeclib_LTLIBRARIES)
|
||||
@$(NORMAL_INSTALL)
|
||||
- $(mkinstalldirs) $(DESTDIR)$(toolexeclibdir)
|
||||
+ $(mkinstalldirs) $(toolexeclibdir)
|
||||
@list='$(toolexeclib_LTLIBRARIES)'; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
- echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(toolexeclibdir)/$$p"; \
|
||||
- $(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(toolexeclibdir)/$$p; \
|
||||
+ echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(toolexeclibdir)/$$p"; \
|
||||
+ $(LIBTOOL) --mode=install $(INSTALL) $$p $(toolexeclibdir)/$$p; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
uninstall-toolexeclibLTLIBRARIES:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
list='$(toolexeclib_LTLIBRARIES)'; for p in $$list; do \
|
||||
- $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(toolexeclibdir)/$$p; \
|
||||
+ $(LIBTOOL) --mode=uninstall rm -f $(toolexeclibdir)/$$p; \
|
||||
done
|
||||
|
||||
.c.o:
|
||||
@@ -421,7 +421,7 @@ all-redirect: all-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||
installdirs:
|
||||
- $(mkinstalldirs) $(DESTDIR)$(toolexeclibdir)
|
||||
+ $(mkinstalldirs) $(toolexeclibdir)
|
||||
|
||||
|
||||
mostlyclean-generic:
|
||||
@@ -511,10 +511,10 @@ install-data-local: myinstalldirs myinst
|
||||
# NB: installation of shadow header directories is not attempted.
|
||||
myinstalldirs:
|
||||
if test -z "$(MULTISUBDIR)"; then \
|
||||
- $(mkinstalldirs) $(DESTDIR)$(gxx_include_dir)/backward; \
|
||||
- $(mkinstalldirs) $(DESTDIR)$(gxx_include_dir)/bits; \
|
||||
- $(mkinstalldirs) $(DESTDIR)$(gxx_include_dir)/ext; \
|
||||
- $(mkinstalldirs) $(DESTDIR)$(gxx_target_include_dir)/bits; \
|
||||
+ $(mkinstalldirs) $(gxx_include_dir)/backward; \
|
||||
+ $(mkinstalldirs) $(gxx_include_dir)/bits; \
|
||||
+ $(mkinstalldirs) $(gxx_include_dir)/ext; \
|
||||
+ $(mkinstalldirs) $(gxx_target_include_dir)/bits; \
|
||||
fi
|
||||
myinstallheaders:
|
||||
if test -z "$(MULTISUBDIR)"; then \
|
@ -1,13 +1,36 @@
|
||||
egcs is an experimental spin-off of gcc that started when people got
|
||||
fed up waiting for gcc 2.8. As the C++ standard finally emerged,
|
||||
egcs people strove trying to implement as much of it as possible.
|
||||
Accordingly, egcs C++ compiler is more suitable for C++ development as
|
||||
gnu gcc. Its library approaches the standard, template support is almost
|
||||
complete, namespace support is coming in, it also includes a newer
|
||||
scheduler (haifa) that gives improved results on HPRisc and Alpha
|
||||
architecture.
|
||||
|
||||
egcs is now the official gcc compiler, and the next release of OpenBSD
|
||||
is going to ship with gcc 2.95.1, at least.
|
||||
Egcs proved to be a succesful project, to the extent that it now is
|
||||
the official gnu compiler, relabelled gcc 2.95 for its first release.
|
||||
|
||||
OpenBSD 2.7 ships with gcc 2.95.2, which should be adequate for most
|
||||
people.
|
||||
|
||||
The main reason for the egcs/snapshot port is to make it easier for
|
||||
interested parties to track current egcs development and report bugs
|
||||
(specific or not to OpenBSD), so that when the next release comes, we
|
||||
are ready to integrate it.
|
||||
|
||||
From a user point of view, you may need some features that the port
|
||||
provides.
|
||||
|
||||
There have been a lot of changes since gcc 2.95.2, this is just a quick
|
||||
summary of a few:
|
||||
|
||||
* the intel scheduler has been revamped. It's more efficient on hundreds
|
||||
of little details,
|
||||
* other arches have known important internal improvement. m68k pic support
|
||||
should be better. HP-PA has most of PA2.0 support in,
|
||||
* internal memory handling now uses a garbage collector. Eventually egcs
|
||||
should become faster, more robust and less memory-hungry (this is already
|
||||
the case in many circumstances),
|
||||
* the back-end specifications have been tightened, so that many bugs have
|
||||
been found,
|
||||
* the C++ compiler now uses one-function-at-a-time tree representations.
|
||||
More optimizations are possible,
|
||||
* the design of varargs facilities has been completely changed,
|
||||
* loads of new warnings and new optimizations.
|
||||
|
||||
See http://egcs.cygnus.com for more details.
|
||||
|
79
lang/egcs/stable/pkg/PLIST
Normal file
79
lang/egcs/stable/pkg/PLIST
Normal file
@ -0,0 +1,79 @@
|
||||
@comment $OpenBSD: PLIST,v 1.3 2001/07/04 15:07:33 espie Exp $
|
||||
@unexec install-info --delete --info-dir=%D/info %D/info/cpp.info
|
||||
@unexec install-info --delete --info-dir=%D/info %D/info/cppinternals.info
|
||||
@unexec install-info --delete --info-dir=%D/info %D/info/gcc.info
|
||||
bin/ecpp
|
||||
bin/egcc
|
||||
bin/egccbug
|
||||
bin/egcov
|
||||
bin/${MACHINE_ARCH}-unknown-openbsd2.9-gcc
|
||||
info/cpp.info
|
||||
info/cpp.info-1
|
||||
info/cpp.info-2
|
||||
info/cpp.info-3
|
||||
info/cpp.info-4
|
||||
info/cppinternals.info
|
||||
info/gcc.info
|
||||
info/gcc.info-1
|
||||
info/gcc.info-10
|
||||
info/gcc.info-11
|
||||
info/gcc.info-12
|
||||
info/gcc.info-13
|
||||
info/gcc.info-14
|
||||
info/gcc.info-15
|
||||
info/gcc.info-16
|
||||
info/gcc.info-17
|
||||
info/gcc.info-18
|
||||
info/gcc.info-19
|
||||
info/gcc.info-2
|
||||
info/gcc.info-20
|
||||
info/gcc.info-21
|
||||
info/gcc.info-22
|
||||
info/gcc.info-23
|
||||
info/gcc.info-24
|
||||
info/gcc.info-25
|
||||
info/gcc.info-26
|
||||
info/gcc.info-27
|
||||
info/gcc.info-28
|
||||
info/gcc.info-29
|
||||
info/gcc.info-3
|
||||
info/gcc.info-30
|
||||
info/gcc.info-31
|
||||
info/gcc.info-32
|
||||
info/gcc.info-33
|
||||
info/gcc.info-34
|
||||
info/gcc.info-35
|
||||
info/gcc.info-36
|
||||
info/gcc.info-37
|
||||
info/gcc.info-38
|
||||
info/gcc.info-4
|
||||
info/gcc.info-5
|
||||
info/gcc.info-6
|
||||
info/gcc.info-7
|
||||
info/gcc.info-8
|
||||
info/gcc.info-9
|
||||
lib/gcc-lib/${MACHINE_ARCH}-unknown-openbsd2.9/3.0/cc1
|
||||
lib/gcc-lib/${MACHINE_ARCH}-unknown-openbsd2.9/3.0/collect2
|
||||
lib/gcc-lib/${MACHINE_ARCH}-unknown-openbsd2.9/3.0/cpp0
|
||||
lib/gcc-lib/${MACHINE_ARCH}-unknown-openbsd2.9/3.0/include/README
|
||||
lib/gcc-lib/${MACHINE_ARCH}-unknown-openbsd2.9/3.0/include/float.h
|
||||
lib/gcc-lib/${MACHINE_ARCH}-unknown-openbsd2.9/3.0/include/limits.h
|
||||
lib/gcc-lib/${MACHINE_ARCH}-unknown-openbsd2.9/3.0/include/machine/ansi.h
|
||||
lib/gcc-lib/${MACHINE_ARCH}-unknown-openbsd2.9/3.0/include/stdarg.h
|
||||
lib/gcc-lib/${MACHINE_ARCH}-unknown-openbsd2.9/3.0/include/syslimits.h
|
||||
lib/gcc-lib/${MACHINE_ARCH}-unknown-openbsd2.9/3.0/include/varargs.h
|
||||
lib/gcc-lib/${MACHINE_ARCH}-unknown-openbsd2.9/3.0/libgcc.a
|
||||
lib/gcc-lib/${MACHINE_ARCH}-unknown-openbsd2.9/3.0/specs
|
||||
lib/gcc-lib/${MACHINE_ARCH}-unknown-openbsd2.9/3.0/tradcpp0
|
||||
lib/libiberty.a
|
||||
man/man1/cpp.1
|
||||
man/man1/egcc.1
|
||||
man/man1/gcov.1
|
||||
@dirrm lib/gcc-lib/${MACHINE_ARCH}-unknown-openbsd2.9/3.0/include/machine
|
||||
@dirrm lib/gcc-lib/${MACHINE_ARCH}-unknown-openbsd2.9/3.0/include
|
||||
@dirrm lib/gcc-lib/${MACHINE_ARCH}-unknown-openbsd2.9/3.0
|
||||
@dirrm lib/gcc-lib/${MACHINE_ARCH}-unknown-openbsd2.9
|
||||
@dirrm lib/gcc-lib
|
||||
@exec install-info --info-dir=%D/info %D/info/cpp.info
|
||||
@exec install-info --info-dir=%D/info %D/info/cppinternals.info
|
||||
@exec install-info --info-dir=%D/info %D/info/gcc.info
|
237
lang/egcs/stable/pkg/PLIST-c++
Normal file
237
lang/egcs/stable/pkg/PLIST-c++
Normal file
@ -0,0 +1,237 @@
|
||||
@comment $OpenBSD: PLIST-c++,v 1.1 2001/07/04 15:07:33 espie Exp $
|
||||
bin/ec++
|
||||
bin/ec++filt
|
||||
bin/eg++
|
||||
bin/${MACHINE_ARCH}-unknown-openbsd2.9-c++
|
||||
bin/${MACHINE_ARCH}-unknown-openbsd2.9-g++
|
||||
include/algorithm
|
||||
include/backward/algo.h
|
||||
include/backward/algobase.h
|
||||
include/backward/alloc.h
|
||||
include/backward/backward_warning.h
|
||||
include/backward/bvector.h
|
||||
include/backward/complex.h
|
||||
include/backward/defalloc.h
|
||||
include/backward/deque.h
|
||||
include/backward/fstream.h
|
||||
include/backward/function.h
|
||||
include/backward/hash_map.h
|
||||
include/backward/hash_set.h
|
||||
include/backward/hashtable.h
|
||||
include/backward/heap.h
|
||||
include/backward/iomanip.h
|
||||
include/backward/iostream.h
|
||||
include/backward/istream.h
|
||||
include/backward/iterator.h
|
||||
include/backward/list.h
|
||||
include/backward/map.h
|
||||
include/backward/multimap.h
|
||||
include/backward/multiset.h
|
||||
include/backward/new.h
|
||||
include/backward/ostream.h
|
||||
include/backward/pair.h
|
||||
include/backward/queue.h
|
||||
include/backward/rope.h
|
||||
include/backward/set.h
|
||||
include/backward/slist.h
|
||||
include/backward/stack.h
|
||||
include/backward/stream.h
|
||||
include/backward/streambuf.h
|
||||
include/backward/strstream
|
||||
include/backward/strstream.h
|
||||
include/backward/tempbuf.h
|
||||
include/backward/tree.h
|
||||
include/backward/vector.h
|
||||
include/bits/basic_file.h
|
||||
include/bits/basic_ios.h
|
||||
include/bits/basic_ios.tcc
|
||||
include/bits/basic_string.h
|
||||
include/bits/basic_string.tcc
|
||||
include/bits/boost_concept_check.h
|
||||
include/bits/char_traits.h
|
||||
include/bits/cmath.tcc
|
||||
include/bits/codecvt.h
|
||||
include/bits/concept_check.h
|
||||
include/bits/cpp_type_traits.h
|
||||
include/bits/fpos.h
|
||||
include/bits/fstream.tcc
|
||||
include/bits/functexcept.h
|
||||
include/bits/generic_shadow.h
|
||||
include/bits/gslice.h
|
||||
include/bits/gslice_array.h
|
||||
include/bits/indirect_array.h
|
||||
include/bits/ios_base.h
|
||||
include/bits/istream.tcc
|
||||
include/bits/locale_facets.h
|
||||
include/bits/locale_facets.tcc
|
||||
include/bits/localefwd.h
|
||||
include/bits/mask_array.h
|
||||
include/bits/ostream.tcc
|
||||
include/bits/pthread_allocimpl.h
|
||||
include/bits/sbuf_iter.h
|
||||
include/bits/slice.h
|
||||
include/bits/slice_array.h
|
||||
include/bits/sstream.tcc
|
||||
include/bits/std_algorithm.h
|
||||
include/bits/std_bitset.h
|
||||
include/bits/std_cassert.h
|
||||
include/bits/std_cctype.h
|
||||
include/bits/std_cerrno.h
|
||||
include/bits/std_cfloat.h
|
||||
include/bits/std_climits.h
|
||||
include/bits/std_clocale.h
|
||||
include/bits/std_cmath.h
|
||||
include/bits/std_complex.h
|
||||
include/bits/std_csetjmp.h
|
||||
include/bits/std_csignal.h
|
||||
include/bits/std_cstdarg.h
|
||||
include/bits/std_cstddef.h
|
||||
include/bits/std_cstdio.h
|
||||
include/bits/std_cstdlib.h
|
||||
include/bits/std_cstring.h
|
||||
include/bits/std_ctime.h
|
||||
include/bits/std_cwchar.h
|
||||
include/bits/std_cwctype.h
|
||||
include/bits/std_deque.h
|
||||
include/bits/std_fstream.h
|
||||
include/bits/std_functional.h
|
||||
include/bits/std_iomanip.h
|
||||
include/bits/std_ios.h
|
||||
include/bits/std_iosfwd.h
|
||||
include/bits/std_iostream.h
|
||||
include/bits/std_istream.h
|
||||
include/bits/std_iterator.h
|
||||
include/bits/std_list.h
|
||||
include/bits/std_locale.h
|
||||
include/bits/std_map.h
|
||||
include/bits/std_memory.h
|
||||
include/bits/std_numeric.h
|
||||
include/bits/std_ostream.h
|
||||
include/bits/std_queue.h
|
||||
include/bits/std_set.h
|
||||
include/bits/std_sstream.h
|
||||
include/bits/std_stack.h
|
||||
include/bits/std_stdexcept.h
|
||||
include/bits/std_streambuf.h
|
||||
include/bits/std_string.h
|
||||
include/bits/std_utility.h
|
||||
include/bits/std_valarray.h
|
||||
include/bits/std_vector.h
|
||||
include/bits/stl_algo.h
|
||||
include/bits/stl_algobase.h
|
||||
include/bits/stl_alloc.h
|
||||
include/bits/stl_bvector.h
|
||||
include/bits/stl_construct.h
|
||||
include/bits/stl_deque.h
|
||||
include/bits/stl_function.h
|
||||
include/bits/stl_heap.h
|
||||
include/bits/stl_iterator.h
|
||||
include/bits/stl_iterator_base_funcs.h
|
||||
include/bits/stl_iterator_base_types.h
|
||||
include/bits/stl_list.h
|
||||
include/bits/stl_map.h
|
||||
include/bits/stl_multimap.h
|
||||
include/bits/stl_multiset.h
|
||||
include/bits/stl_numeric.h
|
||||
include/bits/stl_pair.h
|
||||
include/bits/stl_pthread_alloc.h
|
||||
include/bits/stl_queue.h
|
||||
include/bits/stl_raw_storage_iter.h
|
||||
include/bits/stl_relops.h
|
||||
include/bits/stl_set.h
|
||||
include/bits/stl_stack.h
|
||||
include/bits/stl_tempbuf.h
|
||||
include/bits/stl_threads.h
|
||||
include/bits/stl_tree.h
|
||||
include/bits/stl_uninitialized.h
|
||||
include/bits/stl_vector.h
|
||||
include/bits/streambuf.tcc
|
||||
include/bits/stringfwd.h
|
||||
include/bits/type_traits.h
|
||||
include/bits/valarray_array.h
|
||||
include/bits/valarray_array.tcc
|
||||
include/bits/valarray_meta.h
|
||||
include/bitset
|
||||
include/cassert
|
||||
include/cctype
|
||||
include/cerrno
|
||||
include/cfloat
|
||||
include/ciso646
|
||||
include/climits
|
||||
include/clocale
|
||||
include/cmath
|
||||
include/complex
|
||||
include/csetjmp
|
||||
include/csignal
|
||||
include/cstdarg
|
||||
include/cstddef
|
||||
include/cstdio
|
||||
include/cstdlib
|
||||
include/cstring
|
||||
include/ctime
|
||||
include/cwchar
|
||||
include/cwctype
|
||||
include/deque
|
||||
include/ext/hash_map
|
||||
include/ext/hash_set
|
||||
include/ext/rope
|
||||
include/ext/ropeimpl.h
|
||||
include/ext/slist
|
||||
include/ext/stl_hash_fun.h
|
||||
include/ext/stl_hashtable.h
|
||||
include/ext/stl_rope.h
|
||||
include/fstream
|
||||
include/functional
|
||||
include/g++-v3/cxxabi.h
|
||||
include/g++-v3/exception
|
||||
include/g++-v3/exception_defines.h
|
||||
include/g++-v3/new
|
||||
include/g++-v3/typeinfo
|
||||
include/${MACHINE_ARCH}-unknown-openbsd2.9/bits/atomicity.h
|
||||
include/${MACHINE_ARCH}-unknown-openbsd2.9/bits/basic_file_model.h
|
||||
include/${MACHINE_ARCH}-unknown-openbsd2.9/bits/c++config.h
|
||||
include/${MACHINE_ARCH}-unknown-openbsd2.9/bits/c++io.h
|
||||
include/${MACHINE_ARCH}-unknown-openbsd2.9/bits/c++locale.h
|
||||
include/${MACHINE_ARCH}-unknown-openbsd2.9/bits/ctype_base.h
|
||||
include/${MACHINE_ARCH}-unknown-openbsd2.9/bits/ctype_inline.h
|
||||
include/${MACHINE_ARCH}-unknown-openbsd2.9/bits/ctype_noninline.h
|
||||
include/${MACHINE_ARCH}-unknown-openbsd2.9/bits/gthr-default.h
|
||||
include/${MACHINE_ARCH}-unknown-openbsd2.9/bits/gthr-single.h
|
||||
include/${MACHINE_ARCH}-unknown-openbsd2.9/bits/gthr.h
|
||||
include/${MACHINE_ARCH}-unknown-openbsd2.9/bits/os_defines.h
|
||||
include/${MACHINE_ARCH}-unknown-openbsd2.9/bits/std_limits.h
|
||||
include/iomanip
|
||||
include/ios
|
||||
include/iosfwd
|
||||
include/iostream
|
||||
include/istream
|
||||
include/iterator
|
||||
include/limits
|
||||
include/list
|
||||
include/locale
|
||||
include/map
|
||||
include/memory
|
||||
include/numeric
|
||||
include/ostream
|
||||
include/queue
|
||||
include/set
|
||||
include/sstream
|
||||
include/stack
|
||||
include/stdexcept
|
||||
include/streambuf
|
||||
include/string
|
||||
include/utility
|
||||
include/valarray
|
||||
include/vector
|
||||
lib/gcc-lib/${MACHINE_ARCH}-unknown-openbsd2.9/3.0/cc1plus
|
||||
lib/libstdc++.a
|
||||
lib/libstdc++.la
|
||||
lib/libsupc++.a
|
||||
lib/libsupc++.la
|
||||
man/man1/eg++.1
|
||||
@dirrm include/${MACHINE_ARCH}-unknown-openbsd2.9/bits
|
||||
@dirrm include/${MACHINE_ARCH}-unknown-openbsd2.9
|
||||
@dirrm include/g++-v3
|
||||
@dirrm include/ext
|
||||
@dirrm include/bits
|
||||
@dirrm include/backward
|
Loading…
Reference in New Issue
Block a user