This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New libc version support


Hi all,

I realized I did a little mistake in the patch. It puts eglibc 2.8 in
the experimental features, which is not the case. This new patch fixes
it.

Thomas

Le dimanche 21 dÃcembre 2008 Ã 11:24 +0100, Thomas Jourdan a Ãcrit :
> Hi
> 
> This patch adds support for glibc 2.8 and 2.9, and eglibc 2.9. It
> depends on the experimental feature. You can apply it against the
> revision 1271.
> 
> I did not build workable toolchains yet with thoses libc versions. This
> is for later.
> 
> Regards,
> Thomas
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
Index: scripts/crosstool.sh
===================================================================
--- scripts/crosstool.sh	(rÃvision 1271)
+++ scripts/crosstool.sh	(copie de travail)
@@ -90,7 +90,11 @@
 CT_GMP_FILE="gmp-${CT_GMP_VERSION}"
 CT_MPFR_FILE="mpfr-${CT_MPFR_VERSION}"
 CT_CC_FILE="${CT_CC}-${CT_CC_VERSION}"
-CT_LIBC_FILE="${CT_LIBC}-${CT_LIBC_VERSION}"
+if [ "${CT_LIBC_GLIBC_2_8_or_later}" = "y" ]; then
+    CT_LIBC_FILE="${CT_LIBC}-${CT_LIBC_VERSION}-latest"
+else
+    CT_LIBC_FILE="${CT_LIBC}-${CT_LIBC_VERSION}"
+fi
 
 # Where will we work?
 : "${CT_WORK_DIR:=${CT_TOP_DIR}/targets}"
Index: scripts/addToolVersion.sh
===================================================================
--- scripts/addToolVersion.sh	(rÃvision 1271)
+++ scripts/addToolVersion.sh	(copie de travail)
@@ -86,6 +86,14 @@
             L5="    select CC_GCC_4_3_or_later\n"
         fi
     fi
+    if [ "${tool}" = "glibc" ]; then
+        # Extract 'M'ajor and 'm'inor from version string
+        ver_M=$(echo "${ver}...." |cut -d . -f 1)
+        ver_m=$(echo "${ver}...." |cut -d . -f 2)
+        if [ ${ver_M} -gt 2 -o \( ${ver_M} -eq 2 -a ${ver_m} -ge 8 \) ]; then
+            L5="    select LIBC_GLIBC_2_8_or_later\n"
+        fi
+    fi
     L6="    default \"${ver}\" if ${cat}_V_${v}"
     sed -r -i -e 's/^(# CT_INSERT_VERSION_ABOVE)$/'"${L1}${L2}${L3}${L4}${L5}"'\n\1/;'  \
               -e 's/^(# CT_INSERT_VERSION_STRING_ABOVE)$/'"${L6}"'\n\1/;'               \
Index: config/libc/glibc.in
===================================================================
--- config/libc/glibc.in	(rÃvision 1271)
+++ config/libc/glibc.in	(copie de travail)
@@ -36,6 +36,18 @@
     bool
     prompt "2.7"
 
+config LIBC_V_2_8
+    bool
+    prompt "2.8"
+    depends on EXPERIMENTAL
+    select LIBC_GLIBC_2_8_or_later
+
+config LIBC_V_2_9
+    bool
+    prompt "2.9"
+    depends on EXPERIMENTAL
+    select LIBC_GLIBC_2_8_or_later
+
 # CT_INSERT_VERSION_ABOVE
 # Don't remove above line!
 
@@ -62,6 +74,13 @@
     default "2.6" if LIBC_V_2_6
     default "2.6.1" if LIBC_V_2_6_1
     default "2.7" if LIBC_V_2_7
+    default "2.8" if LIBC_V_2_8
+    default "2.9" if LIBC_V_2_9
+
+config LIBC_GLIBC_2_8_or_later
+    bool
+    default n
+
 # CT_INSERT_VERSION_STRING_ABOVE
 # Don't remove above line!
 
Index: config/libc/eglibc.in
===================================================================
--- config/libc/eglibc.in	(rÃvision 1271)
+++ config/libc/eglibc.in	(copie de travail)
@@ -32,6 +32,11 @@
     bool
     prompt "2.8"
 
+config EGLIBC_V_2_9
+    bool
+    prompt "2.9"
+    depends on EXPERIMENTAL
+
 # CT_INSERT_VERSION_ABOVE
 # Don't remove above line!
 
@@ -50,6 +55,7 @@
     default "2_6" if EGLIBC_V_2_6
     default "2_7" if EGLIBC_V_2_7
     default "2_8" if EGLIBC_V_2_8
+    default "2_9" if EGLIBC_V_2_9
 # CT_INSERT_VERSION_STRING_ABOVE
 # Don't remove above line!
 

--
For unsubscribe information see http://sourceware.org/lists.html#faq

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]