summaryrefslogtreecommitdiff
path: root/lang/gcc28/Makefile
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1998-11-10 07:33:33 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1998-11-10 07:33:33 +0000
commit87c709ae2221aa7e3350bcadb721a6629576838d (patch)
tree2193744e7ed8f3e3af4f6c575fc949f9664d8cfd /lang/gcc28/Makefile
parentMark this port broken, looks like another casualty of the gtk11 upgrade. (diff)
Pass the GNUARCH value to `configure' to force the detection of an ELF system.
(I still intend to fix the bug in the script that misses an ELF system for an a.out one) Current fix submitted by: "Alec Wolman" <wolman@cs.washington.edu>
Notes
Notes: svn path=/head/; revision=14442
Diffstat (limited to 'lang/gcc28/Makefile')
-rw-r--r--lang/gcc28/Makefile20
1 files changed, 14 insertions, 6 deletions
diff --git a/lang/gcc28/Makefile b/lang/gcc28/Makefile
index 0293b4b9aab1..13d635bb6784 100644
--- a/lang/gcc28/Makefile
+++ b/lang/gcc28/Makefile
@@ -1,10 +1,10 @@
# ex:ts=8
# Ports collection makefile for: gcc
-# Version required: 2.8.0
+# Version required: 2.8.1
# Date created: 17 Jan 1998
# Whom: David O'Brien <obrien@NUXI.com>
#
-# $Id: Makefile,v 1.15 1998/09/27 04:25:56 obrien Exp $
+# $Id: Makefile,v 1.16 1998/10/08 01:19:19 asami Exp $
#
DISTNAME= gcc-2.8.1
@@ -13,17 +13,25 @@ MASTER_SITES= ${MASTER_SITE_GNU}
MAINTAINER= obrien@FreeBSD.org
-BROKEN_ELF= "/usr/lib/aout/crt0.o: file not recognized: File format not recognized"
-PLIST_SUB= GNUHOST=${GNUHOST}
+ARE_WE_ELF!= test -x /usr/bin/objformat && /usr/bin/objformat || echo aout
+.if ${ARE_WE_ELF} == "elf"
+GNUHOST= i386-unknown-freebsdelf${OSREL}
+.else
GNUHOST= i386-unknown-freebsd${OSREL}
-CONFIGURE_ARGS= --with-gxx-include-dir=${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.1/include/g++
+.endif
+
+PLIST_SUB= GNUHOST=${GNUHOST}
+CONFIGURE_ARGS= --with-gxx-include-dir=${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.1/include/g++
+.if ${ARE_WE_ELF} == "elf"
+CONFIGURE_ARGS+= --host=${GNUHOST}
+.endif
GNU_CONFIGURE= yes
USE_GMAKE= yes
ALL_TARGET= bootstrap
MAN1= cccp28.1 g++28.1 gcc28.1
pre-fetch:
- @${ECHO} "GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL}"
+ @${ECHO} "GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} ${ARE_WE_ELF}"
pre-configure:
@(cd ${WRKSRC}/config/i386/ ; \