# HG changeset patch # User Bryan Hundven # Date 1289434277 -3600 # Node ID a797ad9c7bd57897d502bd7ddb43e1841fb0ec02 # Parent d3af3efce68c856422588542a1c48e60ecf7b47b libc/*glibc: enable selection of the oldest supported ABI [Yann E. MORIN: split the original patch] Signed-off-by: "Yann E. MORIN" diff -r d3af3efce68c -r a797ad9c7bd5 config/libc/glibc-eglibc.in-common --- a/config/libc/glibc-eglibc.in-common Thu Nov 11 00:29:53 2010 +0100 +++ b/config/libc/glibc-eglibc.in-common Thu Nov 11 01:11:17 2010 +0100 @@ -65,6 +65,18 @@ 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 -r d3af3efce68c -r a797ad9c7bd5 scripts/build/libc/eglibc.sh --- a/scripts/build/libc/eglibc.sh Thu Nov 11 00:29:53 2010 +0100 +++ b/scripts/build/libc/eglibc.sh Thu Nov 11 01:11:17 2010 +0100 @@ -296,6 +296,10 @@ 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 -r d3af3efce68c -r a797ad9c7bd5 scripts/build/libc/glibc.sh --- a/scripts/build/libc/glibc.sh Thu Nov 11 00:29:53 2010 +0100 +++ b/scripts/build/libc/glibc.sh Thu Nov 11 01:11:17 2010 +0100 @@ -373,6 +373,10 @@ 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 ,)");;