Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/stand/lib Unbreak clang build by restricting -...



details:   https://anonhg.NetBSD.org/src/rev/e2c9f32fa6d8
branches:  trunk
changeset: 328581:e2c9f32fa6d8
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Apr 08 13:56:04 2014 +0000

description:
Unbreak clang build by restricting -O0 hack to gcc.

diffstat:

 sys/arch/i386/stand/lib/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r 4cfb57d29c46 -r e2c9f32fa6d8 sys/arch/i386/stand/lib/Makefile
--- a/sys/arch/i386/stand/lib/Makefile  Tue Apr 08 13:20:01 2014 +0000
+++ b/sys/arch/i386/stand/lib/Makefile  Tue Apr 08 13:56:04 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.38 2014/04/07 21:09:55 christos Exp $
+#      $NetBSD: Makefile,v 1.39 2014/04/08 13:56:04 joerg Exp $
 
 S?=    ${.CURDIR}/../../../..
 
@@ -58,5 +58,5 @@
 COPTS.biosdisk.c+=     -fno-strict-aliasing
 .endif
 .if ${HAVE_GCC:U} == 48
-COPTS.biosdisk_ll.c+=  -O0
+COPTS.biosdisk_ll.c+=  ${${ACTIVE_CC} == "gcc":?-O0:}
 .endif



Home | Main Index | Thread Index | Old Index