[PATCH 1 of 2] libc: add disable-versioning and enable-oldest-abi to (e)glibc
Bryan Hundven
bryanhundven@gmail.com
Wed Nov 10 18:40:00 GMT 2010
# HG changeset patch
# User Bryan Hundven <bryanhundven@gmail.com>
# Date 1289413962 28800
# Node ID 9c71049a2a36a3d4bbc30d3032175be618b312b5
# Parent 42cc9bd0db7ea6d690efab40742881414f7c1277
libc: add disable-versioning and enable-oldest-abi to (e)glibc
diff -r 42cc9bd0db7e -r 9c71049a2a36 config/libc/glibc-eglibc.in-common
--- a/config/libc/glibc-eglibc.in-common Tue Nov 09 10:44:29 2010 +0100
+++ b/config/libc/glibc-eglibc.in-common Wed Nov 10 10:32:42 2010 -0800
@@ -58,6 +58,23 @@
Seldom used, except for sparc64 which seems to need the flag -64
to be passed onto gcc.
+config LIBC_DISABLE_VERSIONING
+ bool
+ prompt "Disable versioning information in library objects"
+ default n
+ help
+ Do not include versioning information in the library objects.
+
+config LIBC_OLDEST_ABI
+ string
+ prompt "Configure the oldest ABI supported [e.g. 2.2]"
+ default ""
+ help
+ 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 42cc9bd0db7e -r 9c71049a2a36 scripts/build/libc/eglibc.sh
--- a/scripts/build/libc/eglibc.sh Tue Nov 09 10:44:29 2010 +0100
+++ b/scripts/build/libc/eglibc.sh Wed Nov 10 10:32:42 2010 -0800
@@ -292,6 +292,14 @@
,y) extra_config+=("--without-fp");;
esac
+ if [ "${CT_LIBC_DISABLE_VERSIONING}" = "y" ]; then
+ 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 42cc9bd0db7e -r 9c71049a2a36 scripts/build/libc/glibc.sh
--- a/scripts/build/libc/glibc.sh Tue Nov 09 10:44:29 2010 +0100
+++ b/scripts/build/libc/glibc.sh Wed Nov 10 10:32:42 2010 -0800
@@ -369,6 +369,14 @@
,y) extra_config+=("--without-fp");;
esac
+ if [ "${CT_LIBC_DISABLE_VERSIONING}" = "y" ]; then
+ 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 ,)");;
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list