[PATCH 46/46] Config.in: Introduce symbol for arches without deprecated syscalls
Markos Chandras
markos.chandras at gmail.com
Tue Nov 13 11:31:55 UTC 2012
From: Markos Chandras <markos.chandras at imgtec.com>
Linuxthreads(old and new) need deprecated syscalls to build so we
disable them for architecture that don't support these syscalls.
Signed-off-by: Markos Chandras <markos.chandras at imgtec.com>
---
extra/Configs/Config.in | 2 ++
extra/Configs/Config.in.arch | 9 +++++++++
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in
index 1060729..2f8cc9c 100644
--- a/extra/Configs/Config.in
+++ b/extra/Configs/Config.in
@@ -482,6 +482,7 @@ config HAS_NO_THREADS
config LINUXTHREADS_OLD
bool "older (stable) version of linuxthreads"
# linuxthreads and linuxthreads.old need nanosleep()
+ depends on !ARCH_HAS_NO_DEPRECATED_SYSCALLS
select UCLIBC_HAS_REALTIME
help
There are two versions of linuxthreads. The older (stable) version
@@ -491,6 +492,7 @@ config LINUXTHREADS_OLD
config LINUXTHREADS_NEW
bool "slightly newer version of linuxthreads"
+ depends on !ARCH_HAS_NO_DEPRECATED_SYSCALLS
help
The new version has not been tested much, and lacks ports for arches
which glibc does not support (like bfin/frv/etc...), but is based on
diff --git a/extra/Configs/Config.in.arch b/extra/Configs/Config.in.arch
index f985472..23b561d 100644
--- a/extra/Configs/Config.in.arch
+++ b/extra/Configs/Config.in.arch
@@ -51,6 +51,15 @@ config ARCH_HAS_NO_OLD_IPC
interface. For these architectures, these symbol must be defined
in order to have functional semctl, shmctl and msgctl system calls
+config ARCH_HAS_NO_DEPRECATED_SYSCALLS
+ bool "Target architecture does not support the deprecated system calls"
+ default n
+ help
+ New architectures do not support deprecated system calls. However,
+ these system calls are needed to build linuxthreads (old and new) so
+ this symbol controls whether there is support for these thread libraries
+ or not.
+
config UCLIBC_SHARED_FLAT_ID
int "Shared library ID"
default 1
--
1.7.1
More information about the uClibc
mailing list