aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgerald <gerald@FreeBSD.org>2003-04-27 20:59:04 +0800
committergerald <gerald@FreeBSD.org>2003-04-27 20:59:04 +0800
commit94099c19d5698419c5b6946c658c3357b156c843 (patch)
tree2c74df52d30f459eec8c345582886290ff6c02e2
parentf480b4f9c5010a4302df633837dbc12c60550403 (diff)
downloadfreebsd-ports-gnome-94099c19d5698419c5b6946c658c3357b156c843.tar.gz
freebsd-ports-gnome-94099c19d5698419c5b6946c658c3357b156c843.tar.zst
freebsd-ports-gnome-94099c19d5698419c5b6946c658c3357b156c843.zip
Fix build on -CURRENT.
PR: 46899 Submitted by: David Holm <david@realityrift.com>
-rw-r--r--lang/gcc28/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/lang/gcc28/Makefile b/lang/gcc28/Makefile
index 8db267b88183..173f0d3dabc5 100644
--- a/lang/gcc28/Makefile
+++ b/lang/gcc28/Makefile
@@ -36,6 +36,7 @@ PLIST_SUB= GNUHOST=${CONFIGURE_TARGET}
CONFIGURE_ARGS= --with-gxx-include-dir=${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/2.8.1/include/g++
GNU_CONFIGURE= yes
USE_GMAKE= yes
+USE_REINPLACE= yes
ALL_TARGET= bootstrap
MAN1= cccp28.1 g++28.1 gcc28.1
@@ -46,6 +47,11 @@ pre-patch:
@${MV} ${WRKSRC}/config/i386/freebsd.h ${WRKSRC}/config/i386/freebsd-aout.h
@${MV} ${WRKSRC}/config/i386/freebsd-elf.h ${WRKSRC}/config/i386/freebsd.h
+post-patch:
+.if ${OSVERSION} >= 500000
+ @${REINPLACE_CMD} -e 's|elf_i386|elf_i386_fbsd|' ${WRKSRC}/config/i386/freebsd.h
+.endif
+
pre-configure:
@# Keep from running `autoconf' and `autoheader' since we modified
@# configure.in by patching it.