diff options
author | obrien <obrien@FreeBSD.org> | 1998-11-10 15:33:33 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1998-11-10 15:33:33 +0800 |
commit | ed2e02c935b46f111792897aace2921339ecfeb6 (patch) | |
tree | e8eb525f66b8e40e4021ff0c963c6388412f933e /lang | |
parent | 844805351e4c580686eea5c411e8e892ebacd2e5 (diff) | |
download | freebsd-ports-gnome-ed2e02c935b46f111792897aace2921339ecfeb6.tar.gz freebsd-ports-gnome-ed2e02c935b46f111792897aace2921339ecfeb6.tar.zst freebsd-ports-gnome-ed2e02c935b46f111792897aace2921339ecfeb6.zip |
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>
Diffstat (limited to 'lang')
-rw-r--r-- | lang/gcc28/Makefile | 20 |
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/ ; \ |