Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include disable dso protected for clang now, so that package...
details: https://anonhg.NetBSD.org/src/rev/144db6313f38
branches: trunk
changeset: 344236:144db6313f38
user: christos <christos%NetBSD.org@localhost>
date: Thu Mar 17 17:36:32 2016 +0000
description:
disable dso protected for clang now, so that packages can be built.
(again this is the binutils warning about copy relocations on protected objects)
diffstat:
include/locale.h | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (30 lines):
diff -r 11053666dcfb -r 144db6313f38 include/locale.h
--- a/include/locale.h Thu Mar 17 15:28:00 2016 +0000
+++ b/include/locale.h Thu Mar 17 17:36:32 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locale.h,v 1.26 2016/03/08 03:58:31 christos Exp $ */
+/* $NetBSD: locale.h,v 1.27 2016/03/17 17:36:32 christos Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -106,12 +106,20 @@
struct lconv *localeconv_l(locale_t);
locale_t newlocale(int, const char *, locale_t);
+#ifdef __clang__
+extern struct _locale _lc_global_locale;
+#else
extern __dso_protected struct _locale _lc_global_locale;
+#endif
#define LC_GLOBAL_LOCALE (&_lc_global_locale)
#endif /* _POSIX_SOURCE >= 200809 || _NETBSD_SOURCE */
#if defined(_NETBSD_SOURCE)
+#ifdef __clang__
+extern const struct _locale _lc_C_locale;
+#else
extern __dso_protected const struct _locale _lc_C_locale;
+#endif
#define LC_C_LOCALE ((locale_t)__UNCONST(&_lc_C_locale))
#endif
__END_DECLS
Home |
Main Index |
Thread Index |
Old Index