summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-09-05 15:11:47 +0000
committerdfr <dfr@FreeBSD.org>1998-09-05 15:11:47 +0000
commit35e5c0c5bcdc2d95fb26d931cc0e1890ab19472d (patch)
treeb1a349c6e849f6347cdf30ea9871de2464dace6a
parent572c995dfc13769bc632b8506d8342f4c838c158 (diff)
downloadFreeBSD-src-35e5c0c5bcdc2d95fb26d931cc0e1890ab19472d.zip
FreeBSD-src-35e5c0c5bcdc2d95fb26d931cc0e1890ab19472d.tar.gz
Disable gcc's builtin memcpy for alpha since it doesn't cope with unaligned
regions properly and this triggers an unaligned access trap.
-rw-r--r--sbin/ping/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/ping/Makefile b/sbin/ping/Makefile
index 47708df..329129a 100644
--- a/sbin/ping/Makefile
+++ b/sbin/ping/Makefile
@@ -1,11 +1,14 @@
# @(#)Makefile 8.1 (Berkeley) 6/5/93
-# $Id$
+# $Id: Makefile,v 1.5 1997/12/16 15:03:14 bde Exp $
PROG= ping
MAN8= ping.8
BINOWN= root
BINMODE=4555
COPTS+= -Wall -Wmissing-prototypes
+.if ${MACHINE_ARCH} == "alpha"
+COPTS+= -fno-builtin # GCC's builtin memcpy doesn't do unaligned copies
+.endif
DPADD= ${LIBM}
LDADD= -lm
OpenPOWER on IntegriCloud