Module Name: src
Committed By: matt
Date: Tue Nov 20 23:22:25 UTC 2012
Modified Files:
src/share/mk [matt-nb6-plus]: bsd.own.mk
Log Message:
When using binutils 2.16 with arm, add -D__HAVE_NO__THREADS to CPPFLAGS since
that version bintuils doesn't support TLS for arm. XXX not sure if it supports
TLS for anything.
To generate a diff of this commit:
cvs rdiff -u -r1.696.2.2.2.2 -r1.696.2.2.2.3 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.696.2.2.2.2 src/share/mk/bsd.own.mk:1.696.2.2.2.3
--- src/share/mk/bsd.own.mk:1.696.2.2.2.2 Tue Nov 20 18:55:09 2012
+++ src/share/mk/bsd.own.mk Tue Nov 20 23:22:25 2012
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.own.mk,v 1.696.2.2.2.2 2012/11/20 18:55:09 matt Exp $
+# $NetBSD: bsd.own.mk,v 1.696.2.2.2.3 2012/11/20 23:22:25 matt Exp $
# This needs to be before bsd.init.mk
.if defined(BSD_MK_COMPAT_FILE)
@@ -78,6 +78,11 @@ HAVE_GDB?= 7
# default to binutils 2.21
HAVE_BINUTILS?= 219
+# binutils 2.16 has no TLS support for ARM
+.if ${HAVE_BINUTILS} != "219" && ${MACHINE_CPU} == "arm"
+CPPFLAGS+= -D__HAVE_NO___THREAD
+.endif
+
.if empty(.MAKEFLAGS:M-V*)
.if defined(MAKEOBJDIRPREFIX) || defined(MAKEOBJDIR)
PRINTOBJDIR= ${MAKE} -r -V .OBJDIR -f /dev/null xxx