Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/libelf/lib ia64 compiler bug workaround: reduce...



details:   https://anonhg.NetBSD.org/src/rev/1551887b7407
branches:  trunk
changeset: 783521:1551887b7407
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Dec 27 08:06:28 2012 +0000

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

diffstat:

 external/bsd/libelf/lib/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 722966b05b30 -r 1551887b7407 external/bsd/libelf/lib/Makefile
--- a/external/bsd/libelf/lib/Makefile  Thu Dec 27 07:14:24 2012 +0000
+++ b/external/bsd/libelf/lib/Makefile  Thu Dec 27 08:06:28 2012 +0000
@@ -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 @@
 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                                              \



Home | Main Index | Thread Index | Old Index