diff options
author | gerald <gerald@FreeBSD.org> | 2009-01-04 03:52:17 +0800 |
---|---|---|
committer | gerald <gerald@FreeBSD.org> | 2009-01-04 03:52:17 +0800 |
commit | 566c6dced88933c9b107185a90073ed1887a7018 (patch) | |
tree | b90731e991e6b35542e08795e230374f62914d9e /lang/gcc42 | |
parent | f87752059c2bb37c2f33bfbed8b247e8392688b0 (diff) | |
download | freebsd-ports-gnome-566c6dced88933c9b107185a90073ed1887a7018.tar.gz freebsd-ports-gnome-566c6dced88933c9b107185a90073ed1887a7018.tar.zst freebsd-ports-gnome-566c6dced88933c9b107185a90073ed1887a7018.zip |
Replace CONFLICTS=gcc-2.95.*, which actually is too late to prevent
us running into build problems, by an earlier check (pre-extract).
Suggested by: pav
Diffstat (limited to 'lang/gcc42')
-rw-r--r-- | lang/gcc42/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lang/gcc42/Makefile b/lang/gcc42/Makefile index 95f483fc2487..71c8f4a52863 100644 --- a/lang/gcc42/Makefile +++ b/lang/gcc42/Makefile @@ -28,9 +28,6 @@ LIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4 \ SUFFIX= 42 LATEST_LINK?= gcc${SUFFIX}${PKGNAMESUFFIX} NOT_FOR_ARCHS= ia64 -# Building libgcj with lang/gcc295 installed is causing a failure about -# "hidden symbol `__eprintf'" in libgcc.a(_eprintf.o). -CONFLICTS= gcc-2.95.* USE_BISON= build USE_BZIP2= yes USE_GMAKE= yes @@ -127,6 +124,14 @@ PLIST_SUB+= JAVA="@comment " pre-everything:: @${ECHO_MSG} "Making GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} target=${CONFIGURE_TARGET}" +pre-extract: + @# Building libgcj with lang/gcc295 installed is causing a failure + @# about "hidden symbol `__eprintf'" in libgcc.a(_eprintf.o). + @if type gcc295 >/dev/null ; then \ + echo "This port will not build in the presence of lang/gcc295."; \ + exit 1; \ + fi + post-patch: @${REINPLACE_CMD} -e 's|\(const char version_string.*\)";|\1 [FreeBSD]";|' \ ${SRCDIR}/gcc/version.c |