summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2005-01-13 21:19:50 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2005-01-13 21:19:50 +0000
commit62e81b8d485586a0f58c1ac526478fd34827347e (patch)
tree61b145116e753dc94ca73e6bae5107df4ea8f02f
parentThis now coredumps when bootstrapping on FreeBSD/AMD64. (diff)
Fix one bug about bootstraping on FreeBSD/amd64.
Notes
Notes: svn path=/head/; revision=126355
-rw-r--r--lang/gcc31/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/lang/gcc31/Makefile b/lang/gcc31/Makefile
index 642a99fdc15d..336778f69fd1 100644
--- a/lang/gcc31/Makefile
+++ b/lang/gcc31/Makefile
@@ -33,6 +33,7 @@ NO_CDROM= 'dated material'
LATEST_LINK= gcc31
USE_BZIP2= yes
+USE_REINPLACE= yes
PATCH_WRKSRC= ${SRCDIR}
CONFIGURE_SCRIPT= ../${SRCDIR:C/${WRKDIR}//}/configure
@@ -93,6 +94,8 @@ pre-configure:
@${TOUCH} ${SRCDIR}/gcc/cstamp-h.in
@${MKDIR} ${CONFIGURE_WRKSRC}
@${RM} -f ${SRCDIR}/gcc/*/*.info*
+ @${REINPLACE_CMD} -e 's/elf_x86_64/elf_x86_64_fbsd/g' \
+ ${SRCDIR}/gcc/config/i386/freebsd64.h
pre-build:
cd ${SRCDIR} ; contrib/gcc_update --touch