Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/matt-nb6-plus]: src/share/mk When using binutils 2.16 with arm, add -D__...
details: https://anonhg.NetBSD.org/src/rev/3a66bdd6ac1c
branches: matt-nb6-plus
changeset: 774493:3a66bdd6ac1c
user: matt <matt%NetBSD.org@localhost>
date: Tue Nov 20 23:22:25 2012 +0000
description:
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.
diffstat:
share/mk/bsd.own.mk | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 70f79d29d614 -r 3a66bdd6ac1c share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk Tue Nov 20 23:14:28 2012 +0000
+++ b/share/mk/bsd.own.mk Tue Nov 20 23:22:25 2012 +0000
@@ -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 @@
# 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
Home |
Main Index |
Thread Index |
Old Index