summaryrefslogtreecommitdiff
path: root/palm/prc-tools
diff options
context:
space:
mode:
authorDonald Burr <dburr@FreeBSD.org>1998-05-27 00:17:45 +0000
committerDonald Burr <dburr@FreeBSD.org>1998-05-27 00:17:45 +0000
commit6ddb75cb48752f3e8bb0703a8d85ddc97ad3b2e7 (patch)
tree799a57f708c4938ce4bbf977aaaa17ad69234f2e /palm/prc-tools
parentActivate xemacs-mule and xemacs-mule-common. (diff)
Added check for "-m486" in CFLAGS &/or /etc/make.conf.
The port doesn't build properly if "-m486" is present.
Diffstat (limited to 'palm/prc-tools')
-rw-r--r--palm/prc-tools/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/palm/prc-tools/Makefile b/palm/prc-tools/Makefile
index e164650d4c8f..887c22581aef 100644
--- a/palm/prc-tools/Makefile
+++ b/palm/prc-tools/Makefile
@@ -3,7 +3,7 @@
# Date created: November, 1997
# Whom: Paul Traina <pst@freebsd.org>
#
-# $Id: Makefile,v 1.6 1998/01/01 17:29:06 asami Exp $
+# $Id: Makefile,v 1.7 1998/02/19 06:55:19 asami Exp $
#
# *WARNING* write access to ${PREFIX} is required DURING build because the
# make "all" target actually installs the gnu tools before building the
@@ -61,6 +61,20 @@ STRIP= build-prc \
pilrc \
txt2bitm
+# check for "-m486" and bomb out if the user has it
+pre-build:
+ @if ${ECHO} ${CFLAGS} | ${GREP} -- "-m486" > /dev/null ; then \
+ ${ECHO} "ERROR: You have \"-m486\" defined some-" ; \
+ ${ECHO} " where, either in /etc/make.conf" ; \
+ ${ECHO} " or in the CFLAGS environment" ; \
+ ${ECHO} " variable. This will cause this" ; \
+ ${ECHO} " port to not build properly. Please" ; \
+ ${ECHO} " fix this and re-run make." ; \
+ exit 1 ; \
+ else \
+ ${ECHO} "Your environment looks OK." ; \
+ fi
+
# after we apply freebsd patches, apply prc-tool's patches to gcc/gdb/...
post-patch:
(cd ${WRKSRC} ; make patch)