diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-11-11 01:11:17 +0100 |
---|---|---|
committer | Bryan Hundven <bryanhundven@gmail.com> | 2010-11-11 01:11:17 +0100 |
commit | de81a59714893eb13207eb597cda1980f124c45c (patch) | |
tree | 74c6652781e65b4e7f021aa1cc8091529a5bed1e | |
parent | da6b834eef3e7edd818f34ca96a3cc84a4f95675 (diff) | |
download | crosstool-ng-de81a59714893eb13207eb597cda1980f124c45c.tar.gz crosstool-ng-de81a59714893eb13207eb597cda1980f124c45c.tar.bz2 crosstool-ng-de81a59714893eb13207eb597cda1980f124c45c.zip |
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-common | 12 | ||||
-rw-r--r-- | scripts/build/libc/eglibc.sh | 4 | ||||
-rw-r--r-- | scripts/build/libc/glibc.sh | 4 |
3 files changed, 20 insertions, 0 deletions
diff --git a/config/libc/glibc-eglibc.in-common b/config/libc/glibc-eglibc.in-common index 3244c01d..7e4f2674 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 86f5203b..b9004bb8 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 1543eefa..2bed8617 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 ,)");; |