summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-11-11 00:11:17 (GMT)
committerBryan Hundven <bryanhundven@gmail.com>2010-11-11 00:11:17 (GMT)
commitde81a59714893eb13207eb597cda1980f124c45c (patch)
tree74c6652781e65b4e7f021aa1cc8091529a5bed1e
parentda6b834eef3e7edd818f34ca96a3cc84a4f95675 (diff)
libc/*glibc: enable selection of the oldest supported ABI
[Yann E. MORIN: split the original patch] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
-rw-r--r--config/libc/glibc-eglibc.in-common12
-rw-r--r--scripts/build/libc/eglibc.sh4
-rw-r--r--scripts/build/libc/glibc.sh4
3 files changed, 20 insertions, 0 deletions
diff --git a/config/libc/glibc-eglibc.in-common b/config/libc/glibc-eglibc.in-common
index 3244c01..7e4f267 100644
--- a/config/libc/glibc-eglibc.in-common
+++ b/config/libc/glibc-eglibc.in-common
@@ -65,6 +65,18 @@ config LIBC_DISABLE_VERSIONING
help
Do not include versioning information in the library objects.
+config LIBC_OLDEST_ABI
+ string
+ prompt "Oldest supported ABI"
+ default ""
+ help
+ Set the oldest ABI supported by the C library.
+
+ Setting this option, for example, to 2.2 will provide ABI support
+ back to (e)glibc-2.2.
+
+ If this option is not set, (e)glibc will choose for you.
+
config LIBC_GLIBC_USE_PORTS
bool
prompt "Use the ports addon"
diff --git a/scripts/build/libc/eglibc.sh b/scripts/build/libc/eglibc.sh
index 86f5203..b9004bb 100644
--- a/scripts/build/libc/eglibc.sh
+++ b/scripts/build/libc/eglibc.sh
@@ -296,6 +296,10 @@ do_libc() {
extra_config+=("--disable-versioning")
fi
+ if [ "${CT_LIBC_OLDEST_ABI}" != "" ]; then
+ extra_config+=("--enable-oldest-abi=${CT_LIBC_OLDEST_ABI}")
+ fi
+
case "$(do_libc_add_ons_list ,)" in
"") ;;
*) extra_config+=("--enable-add-ons=$(do_libc_add_ons_list ,)");;
diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh
index 1543eef..2bed861 100644
--- a/scripts/build/libc/glibc.sh
+++ b/scripts/build/libc/glibc.sh
@@ -373,6 +373,10 @@ do_libc() {
extra_config+=("--disable-versioning")
fi
+ if [ "${CT_LIBC_OLDEST_ABI}" != "" ]; then
+ extra_config+=("--enable-oldest-abi=${CT_LIBC_OLDEST_ABI}")
+ fi
+
case "$(do_libc_add_ons_list ,)" in
"") ;;
*) extra_config+=("--enable-add-ons=$(do_libc_add_ons_list ,)");;