libc/*glibc: enable selection of the oldest supported ABI
authorBryan Hundven <bryanhundven@gmail.com>
Thu Nov 11 01:11:17 2010 +0100 (2010-11-11)
changeset 2181a797ad9c7bd5
parent 2180 d3af3efce68c
child 2182 032ae3253a65
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>
config/libc/glibc-eglibc.in-common
scripts/build/libc/eglibc.sh
scripts/build/libc/glibc.sh
     1.1 --- a/config/libc/glibc-eglibc.in-common	Thu Nov 11 00:29:53 2010 +0100
     1.2 +++ b/config/libc/glibc-eglibc.in-common	Thu Nov 11 01:11:17 2010 +0100
     1.3 @@ -65,6 +65,18 @@
     1.4      help
     1.5        Do not include versioning information in the library objects.
     1.6  
     1.7 +config LIBC_OLDEST_ABI
     1.8 +    string
     1.9 +    prompt "Oldest supported ABI"
    1.10 +    default ""
    1.11 +    help
    1.12 +      Set the oldest ABI supported by the C library.
    1.13 +      
    1.14 +      Setting this option, for example, to 2.2 will provide ABI support
    1.15 +      back to (e)glibc-2.2.
    1.16 +
    1.17 +      If this option is not set, (e)glibc will choose for you.
    1.18 +
    1.19  config LIBC_GLIBC_USE_PORTS
    1.20      bool
    1.21      prompt "Use the ports addon"
     2.1 --- a/scripts/build/libc/eglibc.sh	Thu Nov 11 00:29:53 2010 +0100
     2.2 +++ b/scripts/build/libc/eglibc.sh	Thu Nov 11 01:11:17 2010 +0100
     2.3 @@ -296,6 +296,10 @@
     2.4          extra_config+=("--disable-versioning")
     2.5      fi
     2.6  
     2.7 +    if [ "${CT_LIBC_OLDEST_ABI}" != "" ]; then
     2.8 +        extra_config+=("--enable-oldest-abi=${CT_LIBC_OLDEST_ABI}")
     2.9 +    fi
    2.10 +
    2.11      case "$(do_libc_add_ons_list ,)" in
    2.12          "") ;;
    2.13          *)  extra_config+=("--enable-add-ons=$(do_libc_add_ons_list ,)");;
     3.1 --- a/scripts/build/libc/glibc.sh	Thu Nov 11 00:29:53 2010 +0100
     3.2 +++ b/scripts/build/libc/glibc.sh	Thu Nov 11 01:11:17 2010 +0100
     3.3 @@ -373,6 +373,10 @@
     3.4          extra_config+=("--disable-versioning")
     3.5      fi
     3.6  
     3.7 +    if [ "${CT_LIBC_OLDEST_ABI}" != "" ]; then
     3.8 +        extra_config+=("--enable-oldest-abi=${CT_LIBC_OLDEST_ABI}")
     3.9 +    fi
    3.10 +
    3.11      case "$(do_libc_add_ons_list ,)" in
    3.12          "") ;;
    3.13          *)  extra_config+=("--enable-add-ons=$(do_libc_add_ons_list ,)");;