summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-08-30 18:07:39 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-08-30 18:07:39 (GMT)
commit510b70fabd4bfbc954c59718a3961e42c97f0072 (patch)
treee23a575f284001876340f7cbd27b4c5f8a18fd5e
parentaf08c2b96c480ed03423da75bbb4908b6d9b38a9 (diff)
parent4fa6f04c32fff2b1b4c42444875d21cda1e59a40 (diff)
Merge.
-rw-r--r--config/companion_libs.in1
-rw-r--r--config/config.in4
-rw-r--r--config/kernel.in20
-rw-r--r--config/kernel/linux.in1
-rw-r--r--config/toolchain.in11
5 files changed, 24 insertions, 13 deletions
diff --git a/config/companion_libs.in b/config/companion_libs.in
index e543faa..aa4b63a 100644
--- a/config/companion_libs.in
+++ b/config/companion_libs.in
@@ -33,6 +33,7 @@ endif
config PPL_CLOOG_MPC
bool
prompt "PPL, GLooG/PPL and MPC"
+ select GMP_MPFR
select WRAPPER_NEEDED
help
gcc-4.4.0 and above requires PPL and CLooG/PPL to build some parts
diff --git a/config/config.in b/config/config.in
index 14e1a41..b6e6fe5 100644
--- a/config/config.in
+++ b/config/config.in
@@ -2,9 +2,9 @@ source config/global.in
source config/target.in
source config/toolchain.in
source config/kernel.in
-source config/companion_libs.in
source config/binutils.in
source config/cc.in
source config/libc.in
-source config/tools.in
source config/debug.in
+source config/tools.in
+source config/companion_libs.in
diff --git a/config/kernel.in b/config/kernel.in
index 9c701e1..bbaec77 100644
--- a/config/kernel.in
+++ b/config/kernel.in
@@ -8,6 +8,13 @@ config BARE_METAL
bool
default n
+# Each target OS (aka kernel) that support shared libraries can select
+# this, so the user can decide whether or not to build a shared library
+# enabled toolchain
+config KERNEL_SUPPORTS_SHARED_LIBS
+ bool
+ default n
+
config KERNEL
string
@@ -16,4 +23,17 @@ config KERNEL_VERSION
source config.gen/kernel.in
+comment "Common kernel options"
+
+config SHARED_LIBS
+ bool
+ prompt "Build shared libraries"
+ depends on KERNEL_SUPPORTS_SHARED_LIBS
+ default y
+ help
+ Say 'y' here, unless you don't want shared libraries.
+
+ You might not want shared libraries if you're building for a target that
+ don't support it (maybe some nommu targets, for example, or bare metal).
+
endmenu
diff --git a/config/kernel/linux.in b/config/kernel/linux.in
index abcc10f..12ae5a5 100644
--- a/config/kernel/linux.in
+++ b/config/kernel/linux.in
@@ -3,6 +3,7 @@
# Linux kernel options
config KERNEL_linux
+ select KERNEL_SUPPORTS_SHARED_LIBS
help
Build a toolchain targeting systems running Linux as a kernel.
diff --git a/config/toolchain.in b/config/toolchain.in
index 14db552..9372dc4 100644
--- a/config/toolchain.in
+++ b/config/toolchain.in
@@ -28,17 +28,6 @@ config SYSROOT_DIR_PREFIX
In fact, the sysroot path is constructed as:
${CT_PREFIX_DIR}/${CT_TARGET}/${CT_SYSROOT_DIR_PREFIX}/sys-root
-config SHARED_LIBS
- bool
- prompt "Build shared libraries"
- depends on ! BARE_METAL
- default y
- help
- Say 'y' here, unless you don't want shared libraries.
-
- You might not want shared libraries if you're building for a target that
- don't support it (maybe some nommu targets, for example, or bare metal).
-
comment "Tuple completion and aliasing"
config TARGET_VENDOR