aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gcc-devel
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1998-09-27 09:56:14 +0800
committerobrien <obrien@FreeBSD.org>1998-09-27 09:56:14 +0800
commit5ce4f24c09b871c88b43211fbb3947c7375251c1 (patch)
tree524c711b70f1b4975c2072104644150435ce40bd /lang/gcc-devel
parent0ec0e59cee0085bcc255478f155128faa5f0d6dc (diff)
downloadfreebsd-ports-gnome-5ce4f24c09b871c88b43211fbb3947c7375251c1.tar.gz
freebsd-ports-gnome-5ce4f24c09b871c88b43211fbb3947c7375251c1.tar.zst
freebsd-ports-gnome-5ce4f24c09b871c88b43211fbb3947c7375251c1.zip
Build properly on ELF systems.
Diffstat (limited to 'lang/gcc-devel')
-rw-r--r--lang/gcc-devel/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/lang/gcc-devel/Makefile b/lang/gcc-devel/Makefile
index 39bd266c5987..aebd9611b1eb 100644
--- a/lang/gcc-devel/Makefile
+++ b/lang/gcc-devel/Makefile
@@ -19,7 +19,6 @@ MAINTAINER= obrien@FreeBSD.org
EGCS_REV= egcs-2.92.07
LIBSTDCPP_REV= 2.9.0
PLIST_SUB= EGCS_REV=${EGCS_REV} GNU_HOST=${GNUHOST}
-GNUHOST= i386-unknown-freebsd
GNU_CONFIGURE= yes
USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld ${GNUHOST} \
@@ -68,3 +67,9 @@ post-install:
.endfor
.include <bsd.port.mk>
+
+.if (${PORTOBJFORMAT} == "elf")
+GNUHOST= i386-unknown-freebsdelf
+.else
+GNUHOST= i386-unknown-freebsd
+.endif