From 1a11e4f1b1eabcb961f782d13c0efd54a448a6da Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 27 Dec 2012 08:06:28 +0000 Subject: [PATCH] ia64 compiler bug workaround: reduce -O to 1 for one file --- external/bsd/libelf/lib/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/external/bsd/libelf/lib/Makefile b/external/bsd/libelf/lib/Makefile index 12b9d78774e9..2b1ba109a63e 100644 --- a/external/bsd/libelf/lib/Makefile +++ b/external/bsd/libelf/lib/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2009/12/19 09:01:32 thorpej Exp $ +# $NetBSD: Makefile,v 1.3 2012/12/27 08:06:28 martin Exp $ .include @@ -49,6 +49,10 @@ LIBELF_GENSRCS= libelf_fsize.c libelf_msize.c libelf_convert.c CLEANFILES+= ${LIBELF_GENSRCS} CPPFLAGS+= -I${.CURDIR} +.if ${HAVE_GCC:U} == "45" && ${MACHINE_CPU} == "ia64" +COPTS.libelf_extended.c+= ${${ACTIVE_CC} == "gcc" :? -O1 :} +.endif + MAN= elf.3 \ elf_begin.3 \ elf_cntl.3 \