Module Name:    src
Committed By:   martin
Date:           Thu Dec 27 08:06:28 UTC 2012

Modified Files:
        src/external/bsd/libelf/lib: Makefile

Log Message:
ia64 compiler bug workaround: reduce -O to 1 for one file


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/libelf/lib/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/libelf/lib/Makefile
diff -u src/external/bsd/libelf/lib/Makefile:1.2 src/external/bsd/libelf/lib/Makefile:1.3
--- src/external/bsd/libelf/lib/Makefile:1.2	Sat Dec 19 09:01:32 2009
+++ src/external/bsd/libelf/lib/Makefile	Thu Dec 27 08:06:28 2012
@@ -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 <bsd.init.mk>
 
@@ -49,6 +49,10 @@ LIBELF_GENSRCS=	libelf_fsize.c libelf_ms
 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						\

Reply via email to