Module Name:    src
Committed By:   apb
Date:           Sun Oct  5 17:08:46 UTC 2014

Modified Files:
        src/share/mk: bsd.own.mk

Log Message:
Use HAVE_LLVM, not MKLLVM, in tests related to the active compiler.

Fixes problems in a build with MKLLVM=yes HAVE_LLVM=no,
where this error interacted with settings in
src/external/gpl3/gcc/lib/libgcc/Makefile.inc to cause
some object files to be omitted from the libgcc_s library.


To generate a diff of this commit:
cvs rdiff -u -r1.835 -r1.836 src/share/mk/bsd.own.mk

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

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.835 src/share/mk/bsd.own.mk:1.836
--- src/share/mk/bsd.own.mk:1.835	Fri Sep 19 17:45:42 2014
+++ src/share/mk/bsd.own.mk	Sun Oct  5 17:08:46 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.835 2014/09/19 17:45:42 matt Exp $
+#	$NetBSD: bsd.own.mk,v 1.836 2014/10/05 17:08:46 apb Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -98,7 +98,7 @@ _LIBC_COMPILER_RT.powerpc=	yes
 _LIBC_COMPILER_RT.powerpc64=	yes
 _LIBC_COMPILER_RT.x86_64=	yes
 
-.if ${MKLLVM:Uno} == "yes" && ${_LIBC_COMPILER_RT.${MACHINE_ARCH}:Uno} == "yes"
+.if ${HAVE_LLVM:Uno} == "yes" && ${_LIBC_COMPILER_RT.${MACHINE_ARCH}:Uno} == "yes"
 HAVE_LIBGCC?=	no
 .else
 HAVE_LIBGCC?=	yes
@@ -106,7 +106,7 @@ HAVE_LIBGCC?=	yes
 
 
 # ia64 is not support
-.if ${MKLLVM:Uno} == "yes" || !empty(MACHINE_ARCH:Mearm*)
+.if ${HAVE_LLVM:Uno} == "yes" || !empty(MACHINE_ARCH:Mearm*)
 HAVE_LIBGCC_EH?=	no
 .else
 HAVE_LIBGCC_EH?=	yes

Reply via email to