[uClibc] buildroot gcc-4 proposed changes
Peter S. Mazinger
ps.m at gmx.net
Thu Apr 28 13:44:32 UTC 2005
Hello!
gcc-4.1.0 support was added to buildroot. Comparing my gcc-4.0.0
patches with those added to buildroot, I got the attached diffs. I do not
know if they apply to the not-released 4.1.0. The generic one adds alpha
support (and shortens i386 part).
The cxx patch disables reference to a file that was removed from gcc-4.0.0
Check if this is the case for gcc-4.1.0 too.
If someone would review the math patches added to bugs.uclibc.org and
apply them to the uclibc tree (implements all SuSv3 math requirements),
then the hack to disable math functions (float/double) from the
gcc/libstdc++ patch could go away.
Thanks, Peter
--
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
-------------- next part --------------
diff -urNp gcc-4.0.0.br/libstdc++-v3/acinclude.m4 gcc-4.0.0/libstdc++-v3/acinclude.m4
--- gcc-4.0.0.br/libstdc++-v3/acinclude.m4 2005-04-28 15:20:56 +0200
+++ gcc-4.0.0/libstdc++-v3/acinclude.m4 2005-04-28 15:25:22 +0200
@@ -1289,7 +1289,7 @@ AC_DEFUN([GLIBCXX_ENABLE_CLOCALE], [
CLOCALE_H=config/locale/uclibc/c_locale.h
CLOCALE_CC=config/locale/uclibc/c_locale.cc
- CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
+ #CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
CCODECVT_CC=config/locale/uclibc/codecvt_members.cc
CCOLLATE_CC=config/locale/uclibc/collate_members.cc
CCTYPE_CC=config/locale/uclibc/ctype_members.cc
diff -urNp gcc-4.0.0.br/libstdc++-v3/configure gcc-4.0.0/libstdc++-v3/configure
--- gcc-4.0.0.br/libstdc++-v3/configure 2005-04-28 15:20:56 +0200
+++ gcc-4.0.0/libstdc++-v3/configure 2005-04-28 15:25:22 +0200
@@ -5994,7 +5994,7 @@ fi
CLOCALE_H=config/locale/uclibc/c_locale.h
CLOCALE_CC=config/locale/uclibc/c_locale.cc
- CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
+ #CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
CCODECVT_CC=config/locale/uclibc/codecvt_members.cc
CCOLLATE_CC=config/locale/uclibc/collate_members.cc
CCTYPE_CC=config/locale/uclibc/ctype_members.cc
-------------- next part --------------
diff -urNp gcc-4.0.0.br/gcc/config/alpha/linux-elf.h gcc-4.0.0/gcc/config/alpha/linux-elf.h
--- gcc-4.0.0.br/gcc/config/alpha/linux-elf.h 2003-09-27 06:48:12 +0200
+++ gcc-4.0.0/gcc/config/alpha/linux-elf.h 2005-04-28 14:49:34 +0200
@@ -27,7 +27,11 @@ Boston, MA 02111-1307, USA. */
#define SUBTARGET_EXTRA_SPECS \
{ "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
+#ifdef USE_UCLIBC
+#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
+#else
#define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2"
+#endif
#define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \
%{O*:-O3} %{!O*:-O1} \
diff -urNp gcc-4.0.0.br/gcc/config/i386/linux.h gcc-4.0.0/gcc/config/i386/linux.h
--- gcc-4.0.0.br/gcc/config/i386/linux.h 2005-04-28 14:47:48 +0200
+++ gcc-4.0.0/gcc/config/i386/linux.h 2005-04-28 14:49:34 +0200
@@ -104,11 +104,10 @@ Boston, MA 02111-1307, USA. */
/* If ELF is the default format, we should not use /lib/elf. */
-#if defined USE_UCLIBC
#define LINK_EMULATION "elf_i386"
+#ifdef USE_UCLIBC
#define DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
#else
-#define LINK_EMULATION "elf_i386"
#define DYNAMIC_LINKER "/lib/ld-linux.so.2"
#endif
More information about the uClibc
mailing list