mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 21:49:33 +02:00
gcc: Add 4.1.1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@648 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
544
meta/packages/gcc/gcc-4.1.1/100-uclibc-conf.patch
vendored
Normal file
544
meta/packages/gcc/gcc-4.1.1/100-uclibc-conf.patch
vendored
Normal file
@@ -0,0 +1,544 @@
|
|||||||
|
--- gcc-4.1.0/gcc/config/t-linux-uclibc
|
||||||
|
+++ gcc-4.1.0/gcc/config/t-linux-uclibc
|
||||||
|
@@ -0,0 +1,5 @@
|
||||||
|
+# Remove glibc specific files added in t-linux
|
||||||
|
+SHLIB_MAPFILES := $(filter-out $(srcdir)/config/libgcc-glibc.ver, $(SHLIB_MAPFILES))
|
||||||
|
+
|
||||||
|
+# Use unwind-dw2-fde instead of unwind-dw2-fde-glibc
|
||||||
|
+LIB2ADDEH := $(subst unwind-dw2-fde-glibc.c,unwind-dw2-fde.c,$(LIB2ADDEH))
|
||||||
|
--- gcc-4.1.0/gcc/config.gcc
|
||||||
|
+++ gcc-4.1.0/gcc/config.gcc
|
||||||
|
@@ -1887,7 +1887,7 @@ s390x-ibm-tpf*)
|
||||||
|
;;
|
||||||
|
sh-*-elf* | sh[12346l]*-*-elf* | sh*-*-kaos* | \
|
||||||
|
sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
|
||||||
|
- sh-*-linux* | sh[346lbe]*-*-linux* | \
|
||||||
|
+ sh*-*-linux* | sh[346lbe]*-*-linux* | \
|
||||||
|
sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
|
||||||
|
sh64-*-netbsd* | sh64l*-*-netbsd*)
|
||||||
|
tmake_file="${tmake_file} sh/t-sh sh/t-elf"
|
||||||
|
@@ -2341,6 +2341,12 @@ m32c-*-elf*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
+# Rather than hook into each target, just do it after all the linux
|
||||||
|
+# targets have been processed
|
||||||
|
+case ${target} in
|
||||||
|
+*-linux-uclibc*) tm_defines="${tm_defines} USE_UCLIBC" ; tmake_file="${tmake_file} t-linux-uclibc"
|
||||||
|
+esac
|
||||||
|
+
|
||||||
|
case ${target} in
|
||||||
|
i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1)
|
||||||
|
tmake_file="${tmake_file} i386/t-gmm_malloc"
|
||||||
|
--- gcc-4.1.0/boehm-gc/configure
|
||||||
|
+++ gcc-4.1.0/boehm-gc/configure
|
||||||
|
@@ -4320,6 +4320,11 @@ linux-gnu*)
|
||||||
|
lt_cv_deplibs_check_method=pass_all
|
||||||
|
;;
|
||||||
|
|
||||||
|
+linux-uclibc*)
|
||||||
|
+ lt_cv_deplibs_check_method=pass_all
|
||||||
|
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
netbsd* | knetbsd*-gnu)
|
||||||
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||||
|
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
||||||
|
--- gcc-4.1.0/configure
|
||||||
|
+++ gcc-4.1.0/configure
|
||||||
|
@@ -1133,7 +1133,7 @@ no)
|
||||||
|
;;
|
||||||
|
"")
|
||||||
|
case "${target}" in
|
||||||
|
- *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
|
||||||
|
+ *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu | *-*-linux-uclibc*)
|
||||||
|
# Enable libmudflap by default in GNU and friends.
|
||||||
|
;;
|
||||||
|
*-*-freebsd*)
|
||||||
|
--- gcc-4.1.0/configure.in
|
||||||
|
+++ gcc-4.1.0/configure.in
|
||||||
|
@@ -341,7 +341,7 @@ no)
|
||||||
|
;;
|
||||||
|
"")
|
||||||
|
case "${target}" in
|
||||||
|
- *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
|
||||||
|
+ *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu | *-*-linux-uclibc*)
|
||||||
|
# Enable libmudflap by default in GNU and friends.
|
||||||
|
;;
|
||||||
|
*-*-freebsd*)
|
||||||
|
--- gcc-4.1.0/contrib/regression/objs-gcc.sh
|
||||||
|
+++ gcc-4.1.0/contrib/regression/objs-gcc.sh
|
||||||
|
@@ -105,6 +105,10 @@ if [ $H_REAL_TARGET = $H_REAL_HOST -a $H
|
||||||
|
then
|
||||||
|
make all-gdb all-dejagnu all-ld || exit 1
|
||||||
|
make install-gdb install-dejagnu install-ld || exit 1
|
||||||
|
+elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ]
|
||||||
|
+ then
|
||||||
|
+ make all-gdb all-dejagnu all-ld || exit 1
|
||||||
|
+ make install-gdb install-dejagnu install-ld || exit 1
|
||||||
|
elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then
|
||||||
|
make bootstrap || exit 1
|
||||||
|
make install || exit 1
|
||||||
|
--- gcc-4.1.0/gcc/config/alpha/linux-elf.h
|
||||||
|
+++ gcc-4.1.0/gcc/config/alpha/linux-elf.h
|
||||||
|
@@ -27,7 +27,11 @@ Boston, MA 02110-1301, USA. */
|
||||||
|
#define SUBTARGET_EXTRA_SPECS \
|
||||||
|
{ "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
|
||||||
|
|
||||||
|
+#if defined 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} \
|
||||||
|
--- gcc-4.1.0/gcc/config/arm/linux-elf.h
|
||||||
|
+++ gcc-4.1.0/gcc/config/arm/linux-elf.h
|
||||||
|
@@ -51,7 +51,11 @@
|
||||||
|
|
||||||
|
#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
|
||||||
|
|
||||||
|
+#ifdef USE_UCLIBC
|
||||||
|
+#define LINUX_TARGET_INTERPRETER "/lib/ld-uClibc.so.0"
|
||||||
|
+#else
|
||||||
|
#define LINUX_TARGET_INTERPRETER "/lib/ld-linux.so.2"
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#define LINUX_TARGET_LINK_SPEC "%{h*} %{version:-v} \
|
||||||
|
%{b} \
|
||||||
|
--- gcc-4.1.0/gcc/config/cris/linux.h
|
||||||
|
+++ gcc-4.1.0/gcc/config/cris/linux.h
|
||||||
|
@@ -73,6 +73,25 @@ Boston, MA 02110-1301, USA. */
|
||||||
|
#undef CRIS_DEFAULT_CPU_VERSION
|
||||||
|
#define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
|
||||||
|
|
||||||
|
+#ifdef USE_UCLIBC
|
||||||
|
+
|
||||||
|
+#undef CRIS_SUBTARGET_VERSION
|
||||||
|
+#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-uclibc"
|
||||||
|
+
|
||||||
|
+#undef CRIS_LINK_SUBTARGET_SPEC
|
||||||
|
+#define CRIS_LINK_SUBTARGET_SPEC \
|
||||||
|
+ "-mcrislinux\
|
||||||
|
+ -rpath-link include/asm/../..%s\
|
||||||
|
+ %{shared} %{static}\
|
||||||
|
+ %{symbolic:-Bdynamic} %{shlib:-Bdynamic} %{static:-Bstatic}\
|
||||||
|
+ %{!shared: \
|
||||||
|
+ %{!static: \
|
||||||
|
+ %{rdynamic:-export-dynamic} \
|
||||||
|
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}} \
|
||||||
|
+ %{!r:%{O2|O3: --gc-sections}}"
|
||||||
|
+
|
||||||
|
+#else /* USE_UCLIBC */
|
||||||
|
+
|
||||||
|
#undef CRIS_SUBTARGET_VERSION
|
||||||
|
#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
|
||||||
|
|
||||||
|
@@ -87,6 +106,8 @@ Boston, MA 02110-1301, USA. */
|
||||||
|
%{!shared:%{!static:%{rdynamic:-export-dynamic}}}\
|
||||||
|
%{!r:%{O2|O3: --gc-sections}}"
|
||||||
|
|
||||||
|
+#endif /* USE_UCLIBC */
|
||||||
|
+
|
||||||
|
|
||||||
|
/* Node: Run-time Target */
|
||||||
|
|
||||||
|
--- gcc-4.1.0/gcc/config/i386/linux.h
|
||||||
|
+++ gcc-4.1.0/gcc/config/i386/linux.h
|
||||||
|
@@ -107,6 +107,11 @@ Boston, MA 02110-1301, USA. */
|
||||||
|
#define LINK_EMULATION "elf_i386"
|
||||||
|
#define DYNAMIC_LINKER "/lib/ld-linux.so.2"
|
||||||
|
|
||||||
|
+#if defined USE_UCLIBC
|
||||||
|
+#undef DYNAMIC_LINKER
|
||||||
|
+#define DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#undef SUBTARGET_EXTRA_SPECS
|
||||||
|
#define SUBTARGET_EXTRA_SPECS \
|
||||||
|
{ "link_emulation", LINK_EMULATION },\
|
||||||
|
--- gcc-4.1.0/gcc/config/i386/linux64.h
|
||||||
|
+++ gcc-4.1.0/gcc/config/i386/linux64.h
|
||||||
|
@@ -54,14 +54,21 @@ Boston, MA 02110-1301, USA. */
|
||||||
|
When the -shared link option is used a final link is not being
|
||||||
|
done. */
|
||||||
|
|
||||||
|
+#ifdef USE_UCLIBC
|
||||||
|
+#define ELF32_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
||||||
|
+#define ELF64_DYNAMIC_LINKER "/lib/ld64-uClibc.so.0"
|
||||||
|
+#else
|
||||||
|
+#define ELF32_DYNAMIC_LINKER "/lib/ld-linux.so.2"
|
||||||
|
+#define ELF64_DYNAMIC_LINKER "/lib64/ld-linux-x86-64.so.2"
|
||||||
|
+#endif
|
||||||
|
#undef LINK_SPEC
|
||||||
|
#define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} \
|
||||||
|
%{shared:-shared} \
|
||||||
|
%{!shared: \
|
||||||
|
%{!static: \
|
||||||
|
%{rdynamic:-export-dynamic} \
|
||||||
|
- %{m32:%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
|
||||||
|
- %{!m32:%{!dynamic-linker:-dynamic-linker /lib64/ld-linux-x86-64.so.2}}} \
|
||||||
|
+ %{m32:%{!dynamic-linker:-dynamic-linker " ELF32_DYNAMIC_LINKER "}} \
|
||||||
|
+ %{!m32:%{!dynamic-linker:-dynamic-linker " ELF64_DYNAMIC_LINKER "}}} \
|
||||||
|
%{static:-static}}"
|
||||||
|
|
||||||
|
/* Similar to standard Linux, but adding -ffast-math support. */
|
||||||
|
--- gcc-4.1.0/gcc/config/ia64/linux.h
|
||||||
|
+++ gcc-4.1.0/gcc/config/ia64/linux.h
|
||||||
|
@@ -37,13 +37,18 @@ do { \
|
||||||
|
/* Define this for shared library support because it isn't in the main
|
||||||
|
linux.h file. */
|
||||||
|
|
||||||
|
+#ifdef USE_UCLIBC
|
||||||
|
+#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
||||||
|
+#else
|
||||||
|
+#define ELF_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
|
||||||
|
+#endif
|
||||||
|
#undef LINK_SPEC
|
||||||
|
#define LINK_SPEC "\
|
||||||
|
%{shared:-shared} \
|
||||||
|
%{!shared: \
|
||||||
|
%{!static: \
|
||||||
|
%{rdynamic:-export-dynamic} \
|
||||||
|
- %{!dynamic-linker:-dynamic-linker /lib/ld-linux-ia64.so.2}} \
|
||||||
|
+ %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
|
||||||
|
%{static:-static}}"
|
||||||
|
|
||||||
|
|
||||||
|
--- gcc-4.1.0/gcc/config/m68k/linux.h
|
||||||
|
+++ gcc-4.1.0/gcc/config/m68k/linux.h
|
||||||
|
@@ -123,12 +123,17 @@ Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
/* If ELF is the default format, we should not use /lib/elf. */
|
||||||
|
|
||||||
|
+#ifdef USE_UCLIBC
|
||||||
|
+#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
||||||
|
+#else
|
||||||
|
+#define ELF_DYNAMIC_LINKER "/lib/ld.so.1"
|
||||||
|
+#endif
|
||||||
|
#undef LINK_SPEC
|
||||||
|
#define LINK_SPEC "-m m68kelf %{shared} \
|
||||||
|
%{!shared: \
|
||||||
|
%{!static: \
|
||||||
|
%{rdynamic:-export-dynamic} \
|
||||||
|
- %{!dynamic-linker*:-dynamic-linker /lib/ld.so.1}} \
|
||||||
|
+ %{!dynamic-linker*:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
|
||||||
|
%{static}}"
|
||||||
|
|
||||||
|
/* For compatibility with linux/a.out */
|
||||||
|
--- gcc-4.1.0/gcc/config/mips/linux.h
|
||||||
|
+++ gcc-4.1.0/gcc/config/mips/linux.h
|
||||||
|
@@ -105,6 +105,11 @@ Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
/* Borrowed from sparc/linux.h */
|
||||||
|
#undef LINK_SPEC
|
||||||
|
+#ifdef USE_UCLIBC
|
||||||
|
+#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
||||||
|
+#else
|
||||||
|
+#define ELF_DYNAMIC_LINKER "/lib/ld.so.1"
|
||||||
|
+#endif
|
||||||
|
#define LINK_SPEC \
|
||||||
|
"%(endian_spec) \
|
||||||
|
%{shared:-shared} \
|
||||||
|
@@ -112,7 +117,7 @@ Boston, MA 02110-1301, USA. */
|
||||||
|
%{!ibcs: \
|
||||||
|
%{!static: \
|
||||||
|
%{rdynamic:-export-dynamic} \
|
||||||
|
- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
|
||||||
|
+ %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
|
||||||
|
%{static:-static}}}"
|
||||||
|
|
||||||
|
#undef SUBTARGET_ASM_SPEC
|
||||||
|
--- gcc-4.1.0/gcc/config/pa/pa-linux.h
|
||||||
|
+++ gcc-4.1.0/gcc/config/pa/pa-linux.h
|
||||||
|
@@ -49,13 +49,18 @@ Boston, MA 02110-1301, USA. */
|
||||||
|
/* Define this for shared library support because it isn't in the main
|
||||||
|
linux.h file. */
|
||||||
|
|
||||||
|
+#ifdef USE_UCLIBC
|
||||||
|
+#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
||||||
|
+#else
|
||||||
|
+#define ELF_DYNAMIC_LINKER "/lib/ld.so.1"
|
||||||
|
+#endif
|
||||||
|
#undef LINK_SPEC
|
||||||
|
#define LINK_SPEC "\
|
||||||
|
%{shared:-shared} \
|
||||||
|
%{!shared: \
|
||||||
|
%{!static: \
|
||||||
|
%{rdynamic:-export-dynamic} \
|
||||||
|
- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
|
||||||
|
+ %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
|
||||||
|
%{static:-static}}"
|
||||||
|
|
||||||
|
/* glibc's profiling functions don't need gcc to allocate counters. */
|
||||||
|
--- gcc-4.1.0/gcc/config/rs6000/linux.h
|
||||||
|
+++ gcc-4.1.0/gcc/config/rs6000/linux.h
|
||||||
|
@@ -72,7 +72,11 @@
|
||||||
|
#define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
|
||||||
|
|
||||||
|
#undef LINK_OS_DEFAULT_SPEC
|
||||||
|
+#ifdef USE_UCLIBC
|
||||||
|
+#define LINK_OS_DEFAULT_SPEC "%(link_os_linux_uclibc)"
|
||||||
|
+#else
|
||||||
|
#define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#define LINK_GCC_C_SEQUENCE_SPEC \
|
||||||
|
"%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
|
||||||
|
--- gcc-4.1.0/gcc/config/rs6000/sysv4.h
|
||||||
|
+++ gcc-4.1.0/gcc/config/rs6000/sysv4.h
|
||||||
|
@@ -866,6 +866,7 @@ extern int fixuplabelno;
|
||||||
|
mcall-linux : %(link_os_linux) ; \
|
||||||
|
mcall-gnu : %(link_os_gnu) ; \
|
||||||
|
mcall-netbsd : %(link_os_netbsd) ; \
|
||||||
|
+ mcall-linux-uclibc : %(link_os_linux_uclibc); \
|
||||||
|
mcall-openbsd: %(link_os_openbsd) ; \
|
||||||
|
: %(link_os_default) }"
|
||||||
|
|
||||||
|
@@ -1043,6 +1044,10 @@ extern int fixuplabelno;
|
||||||
|
%{rdynamic:-export-dynamic} \
|
||||||
|
%{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
|
||||||
|
|
||||||
|
+#define LINK_OS_LINUX_UCLIBC_SPEC "-m elf32ppclinux %{!shared: %{!static: \
|
||||||
|
+ %{rdynamic:-export-dynamic} \
|
||||||
|
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}}"
|
||||||
|
+
|
||||||
|
#if defined(HAVE_LD_EH_FRAME_HDR)
|
||||||
|
# define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
|
||||||
|
#endif
|
||||||
|
@@ -1209,6 +1214,7 @@ ncrtn.o%s"
|
||||||
|
{ "link_os_sim", LINK_OS_SIM_SPEC }, \
|
||||||
|
{ "link_os_freebsd", LINK_OS_FREEBSD_SPEC }, \
|
||||||
|
{ "link_os_linux", LINK_OS_LINUX_SPEC }, \
|
||||||
|
+ { "link_os_linux_uclibc", LINK_OS_LINUX_UCLIBC_SPEC }, \
|
||||||
|
{ "link_os_gnu", LINK_OS_GNU_SPEC }, \
|
||||||
|
{ "link_os_netbsd", LINK_OS_NETBSD_SPEC }, \
|
||||||
|
{ "link_os_openbsd", LINK_OS_OPENBSD_SPEC }, \
|
||||||
|
--- gcc-4.1.0/gcc/config/s390/linux.h
|
||||||
|
+++ gcc-4.1.0/gcc/config/s390/linux.h
|
||||||
|
@@ -77,6 +77,13 @@ Software Foundation, 51 Franklin Street,
|
||||||
|
#define MULTILIB_DEFAULTS { "m31" }
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#ifdef USE_UCLIBC
|
||||||
|
+#define ELF31_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
||||||
|
+#define ELF64_DYNAMIC_LINKER "/lib/ld64-uClibc.so.0"
|
||||||
|
+#else
|
||||||
|
+#define ELF31_DYNAMIC_LINKER "/lib/ld.so.1"
|
||||||
|
+#define ELF64_DYNAMIC_LINKER "/lib/ld64.so.1"
|
||||||
|
+#endif
|
||||||
|
#undef LINK_SPEC
|
||||||
|
#define LINK_SPEC \
|
||||||
|
"%{m31:-m elf_s390}%{m64:-m elf64_s390} \
|
||||||
|
@@ -86,8 +93,8 @@ Software Foundation, 51 Franklin Street,
|
||||||
|
%{!static: \
|
||||||
|
%{rdynamic:-export-dynamic} \
|
||||||
|
%{!dynamic-linker: \
|
||||||
|
- %{m31:-dynamic-linker /lib/ld.so.1} \
|
||||||
|
- %{m64:-dynamic-linker /lib/ld64.so.1}}}}"
|
||||||
|
+ %{m31:-dynamic-linker " ELF31_DYNAMIC_LINKER "} \
|
||||||
|
+ %{m64:-dynamic-linker " ELF64_DYNAMIC_LINKER "}}}}"
|
||||||
|
|
||||||
|
|
||||||
|
#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
|
||||||
|
--- gcc-4.1.0/gcc/config/sh/linux.h
|
||||||
|
+++ gcc-4.1.0/gcc/config/sh/linux.h
|
||||||
|
@@ -56,12 +56,21 @@ Boston, MA 02110-1301, USA. */
|
||||||
|
#undef SUBTARGET_LINK_EMUL_SUFFIX
|
||||||
|
#define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
|
||||||
|
#undef SUBTARGET_LINK_SPEC
|
||||||
|
+#ifdef USE_UCLIBC
|
||||||
|
+#define SUBTARGET_LINK_SPEC \
|
||||||
|
+ "%{shared:-shared} \
|
||||||
|
+ %{!static: \
|
||||||
|
+ %{rdynamic:-export-dynamic} \
|
||||||
|
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
||||||
|
+ %{static:-static}"
|
||||||
|
+#else
|
||||||
|
#define SUBTARGET_LINK_SPEC \
|
||||||
|
"%{shared:-shared} \
|
||||||
|
%{!static: \
|
||||||
|
%{rdynamic:-export-dynamic} \
|
||||||
|
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
|
||||||
|
%{static:-static}"
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
/* Output assembler code to STREAM to call the profiler. */
|
||||||
|
|
||||||
|
--- gcc-4.1.0/gcc/config/sparc/linux.h
|
||||||
|
+++ gcc-4.1.0/gcc/config/sparc/linux.h
|
||||||
|
@@ -125,6 +125,11 @@ Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
/* If ELF is the default format, we should not use /lib/elf. */
|
||||||
|
|
||||||
|
+#ifdef USE_UCLIBC
|
||||||
|
+#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
||||||
|
+#else
|
||||||
|
+#define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2"
|
||||||
|
+#endif
|
||||||
|
#undef LINK_SPEC
|
||||||
|
#define LINK_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
|
||||||
|
%{!mno-relax:%{!r:-relax}} \
|
||||||
|
@@ -132,7 +137,7 @@ Boston, MA 02110-1301, USA. */
|
||||||
|
%{!ibcs: \
|
||||||
|
%{!static: \
|
||||||
|
%{rdynamic:-export-dynamic} \
|
||||||
|
- %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
|
||||||
|
+ %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
|
||||||
|
%{static:-static}}}"
|
||||||
|
|
||||||
|
/* The sun bundled assembler doesn't accept -Yd, (and neither does gas).
|
||||||
|
--- gcc-4.1.0/gcc/config/sparc/linux64.h
|
||||||
|
+++ gcc-4.1.0/gcc/config/sparc/linux64.h
|
||||||
|
@@ -162,12 +162,17 @@ Boston, MA 02110-1301, USA. */
|
||||||
|
{ "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \
|
||||||
|
{ "link_arch", LINK_ARCH_SPEC },
|
||||||
|
|
||||||
|
+#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_ARCH32_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
|
||||||
|
%{!shared: \
|
||||||
|
%{!ibcs: \
|
||||||
|
%{!static: \
|
||||||
|
%{rdynamic:-export-dynamic} \
|
||||||
|
- %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
|
||||||
|
+ %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
|
||||||
|
%{static:-static}}} \
|
||||||
|
"
|
||||||
|
|
||||||
|
--- gcc-4.1.0/libffi/configure
|
||||||
|
+++ gcc-4.1.0/libffi/configure
|
||||||
|
@@ -3457,6 +3457,11 @@ linux-gnu*)
|
||||||
|
lt_cv_deplibs_check_method=pass_all
|
||||||
|
;;
|
||||||
|
|
||||||
|
+linux-uclibc*)
|
||||||
|
+ lt_cv_deplibs_check_method=pass_all
|
||||||
|
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
netbsd* | knetbsd*-gnu)
|
||||||
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||||
|
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
||||||
|
--- gcc-4.1.0/libgfortran/configure
|
||||||
|
+++ gcc-4.1.0/libgfortran/configure
|
||||||
|
@@ -3699,6 +3699,11 @@ linux-gnu*)
|
||||||
|
lt_cv_deplibs_check_method=pass_all
|
||||||
|
;;
|
||||||
|
|
||||||
|
+linux-uclibc*)
|
||||||
|
+ lt_cv_deplibs_check_method=pass_all
|
||||||
|
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
netbsd* | knetbsd*-gnu)
|
||||||
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||||
|
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
||||||
|
--- gcc-4.1.0/libjava/configure
|
||||||
|
+++ gcc-4.1.0/libjava/configure
|
||||||
|
@@ -5137,6 +5137,11 @@ linux-gnu*)
|
||||||
|
lt_cv_deplibs_check_method=pass_all
|
||||||
|
;;
|
||||||
|
|
||||||
|
+linux-uclibc*)
|
||||||
|
+ lt_cv_deplibs_check_method=pass_all
|
||||||
|
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
netbsd* | knetbsd*-gnu)
|
||||||
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||||
|
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
||||||
|
--- gcc-4.1.0/libmudflap/configure
|
||||||
|
+++ gcc-4.1.0/libmudflap/configure
|
||||||
|
@@ -5382,6 +5382,11 @@ linux-gnu*)
|
||||||
|
lt_cv_deplibs_check_method=pass_all
|
||||||
|
;;
|
||||||
|
|
||||||
|
+linux-uclibc*)
|
||||||
|
+ lt_cv_deplibs_check_method=pass_all
|
||||||
|
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
netbsd* | knetbsd*-gnu)
|
||||||
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||||
|
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
||||||
|
--- gcc-4.1.0/libobjc/configure
|
||||||
|
+++ gcc-4.1.0/libobjc/configure
|
||||||
|
@@ -3312,6 +3312,11 @@ linux-gnu*)
|
||||||
|
lt_cv_deplibs_check_method=pass_all
|
||||||
|
;;
|
||||||
|
|
||||||
|
+linux-uclibc*)
|
||||||
|
+ lt_cv_deplibs_check_method=pass_all
|
||||||
|
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
netbsd* | knetbsd*-gnu)
|
||||||
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||||
|
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
||||||
|
--- gcc-4.1.0/libtool.m4
|
||||||
|
+++ gcc-4.1.0/libtool.m4
|
||||||
|
@@ -743,6 +743,11 @@ linux-gnu*)
|
||||||
|
lt_cv_deplibs_check_method=pass_all
|
||||||
|
;;
|
||||||
|
|
||||||
|
+linux-uclibc*)
|
||||||
|
+ lt_cv_deplibs_check_method=pass_all
|
||||||
|
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
netbsd* | knetbsd*-gnu)
|
||||||
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||||
|
[lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
|
||||||
|
--- gcc-4.1.0/ltconfig
|
||||||
|
+++ gcc-4.1.0/ltconfig
|
||||||
|
@@ -603,6 +603,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-
|
||||||
|
|
||||||
|
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
|
||||||
|
case $host_os in
|
||||||
|
+linux-uclibc*) ;;
|
||||||
|
linux-gnu*) ;;
|
||||||
|
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
|
||||||
|
esac
|
||||||
|
@@ -1274,6 +1275,23 @@ linux-gnu*)
|
||||||
|
dynamic_linker='GNU/Linux ld.so'
|
||||||
|
;;
|
||||||
|
|
||||||
|
+linux-uclibc*)
|
||||||
|
+ version_type=linux
|
||||||
|
+ need_lib_prefix=no
|
||||||
|
+ need_version=no
|
||||||
|
+ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
||||||
|
+ soname_spec='${libname}${release}.so$major'
|
||||||
|
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
||||||
|
+ shlibpath_var=LD_LIBRARY_PATH
|
||||||
|
+ shlibpath_overrides_runpath=no
|
||||||
|
+ # This implies no fast_install, which is unacceptable.
|
||||||
|
+ # Some rework will be needed to allow for fast_install
|
||||||
|
+ # before this can be enabled.
|
||||||
|
+ hardcode_into_libs=yes
|
||||||
|
+ # Assume using the uClibc dynamic linker.
|
||||||
|
+ dynamic_linker="uClibc ld.so"
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
netbsd*)
|
||||||
|
need_lib_prefix=no
|
||||||
|
need_version=no
|
||||||
|
--- gcc-4.1.0/zlib/configure
|
||||||
|
+++ gcc-4.1.0/zlib/configure
|
||||||
|
@@ -3426,6 +3426,11 @@ linux-gnu*)
|
||||||
|
lt_cv_deplibs_check_method=pass_all
|
||||||
|
;;
|
||||||
|
|
||||||
|
+linux-uclibc*)
|
||||||
|
+ lt_cv_deplibs_check_method=pass_all
|
||||||
|
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
netbsd* | knetbsd*-gnu)
|
||||||
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||||
|
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
||||||
27
meta/packages/gcc/gcc-4.1.1/110-arm-eabi.patch
vendored
Normal file
27
meta/packages/gcc/gcc-4.1.1/110-arm-eabi.patch
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
--- gcc-2005q3-1.orig/gcc/config.gcc 2005-10-31 19:02:54.000000000 +0300
|
||||||
|
+++ gcc-2005q3-1/gcc/config.gcc 2006-01-27 01:09:09.000000000 +0300
|
||||||
|
@@ -674,7 +674,7 @@
|
||||||
|
tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h"
|
||||||
|
tmake_file="t-slibgcc-elf-ver t-linux arm/t-arm"
|
||||||
|
case ${target} in
|
||||||
|
- arm*-*-linux-gnueabi)
|
||||||
|
+ arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi)
|
||||||
|
tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h"
|
||||||
|
tmake_file="$tmake_file arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi"
|
||||||
|
# The BPABI long long divmod functions return a 128-bit value in
|
||||||
|
|
||||||
|
diff -urN gcc-2005q3-2/gcc/config/arm/linux-eabi.h gcc-2005q3-2.new/gcc/config/arm/linux-eabi.h
|
||||||
|
--- gcc-2005q3-2/gcc/config/arm/linux-eabi.h 2005-12-07 23:14:16.000000000 +0300
|
||||||
|
+++ gcc-2005q3-2.new/gcc/config/arm/linux-eabi.h 2006-03-29 19:02:34.000000000 +0400
|
||||||
|
@@ -53,7 +53,11 @@
|
||||||
|
/* Use ld-linux.so.3 so that it will be possible to run "classic"
|
||||||
|
GNU/Linux binaries on an EABI system. */
|
||||||
|
#undef LINUX_TARGET_INTERPRETER
|
||||||
|
+#ifdef USE_UCLIBC
|
||||||
|
+#define LINUX_TARGET_INTERPRETER "/lib/ld-uClibc.so.0"
|
||||||
|
+#else
|
||||||
|
#define LINUX_TARGET_INTERPRETER "/lib/ld-linux.so.3"
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
/* At this point, bpabi.h will have clobbered LINK_SPEC. We want to
|
||||||
|
use the GNU/Linux version, not the generic BPABI version. */
|
||||||
3261
meta/packages/gcc/gcc-4.1.1/200-uclibc-locale.patch
vendored
Normal file
3261
meta/packages/gcc/gcc-4.1.1/200-uclibc-locale.patch
vendored
Normal file
File diff suppressed because it is too large
Load Diff
46
meta/packages/gcc/gcc-4.1.1/300-libstdc++-pic.patch
vendored
Normal file
46
meta/packages/gcc/gcc-4.1.1/300-libstdc++-pic.patch
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
# DP: Build and install libstdc++_pic.a library.
|
||||||
|
|
||||||
|
--- gcc-4.1.0/libstdc++-v3/src/Makefile.am 2004-11-15 17:33:05.000000000 -0600
|
||||||
|
+++ gcc-4.1.0-patched/libstdc++-v3/src/Makefile.am 2005-04-25 20:05:59.186930896 -0500
|
||||||
|
@@ -214,6 +214,10 @@
|
||||||
|
$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LDFLAGS) -o $@
|
||||||
|
|
||||||
|
|
||||||
|
+install-exec-local:
|
||||||
|
+ $(AR) cru libstdc++_pic.a .libs/*.o $(top_builddir)/libsupc++/*.o
|
||||||
|
+ $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir)
|
||||||
|
+
|
||||||
|
# Added bits to build debug library.
|
||||||
|
if GLIBCXX_BUILD_DEBUG
|
||||||
|
all-local: build_debug
|
||||||
|
--- gcc-4.1.0/libstdc++-v3/src/Makefile.in 2005-04-11 19:13:08.000000000 -0500
|
||||||
|
+++ gcc-4.1.0-patched/libstdc++-v3/src/Makefile.in 2005-04-25 20:12:33.284316275 -0500
|
||||||
|
@@ -627,7 +627,7 @@
|
||||||
|
|
||||||
|
install-data-am: install-data-local
|
||||||
|
|
||||||
|
-install-exec-am: install-toolexeclibLTLIBRARIES
|
||||||
|
+install-exec-am: install-toolexeclibLTLIBRARIES install-exec-local
|
||||||
|
|
||||||
|
install-info: install-info-am
|
||||||
|
|
||||||
|
@@ -660,6 +660,7 @@
|
||||||
|
distclean-libtool distclean-tags distdir dvi dvi-am html \
|
||||||
|
html-am info info-am install install-am install-data \
|
||||||
|
install-data-am install-data-local install-exec \
|
||||||
|
+ install-exec-local \
|
||||||
|
install-exec-am install-info install-info-am install-man \
|
||||||
|
install-strip install-toolexeclibLTLIBRARIES installcheck \
|
||||||
|
installcheck-am installdirs maintainer-clean \
|
||||||
|
@@ -745,6 +746,11 @@
|
||||||
|
install_debug:
|
||||||
|
(cd ${debugdir} && $(MAKE) \
|
||||||
|
toolexeclibdir=$(glibcxx_toolexeclibdir)/debug install)
|
||||||
|
+
|
||||||
|
+install-exec-local:
|
||||||
|
+ $(AR) cru libstdc++_pic.a .libs/*.o $(top_builddir)/libsupc++/*.o
|
||||||
|
+ $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir)
|
||||||
|
+
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
||||||
11
meta/packages/gcc/gcc-4.1.1/301-missing-execinfo_h.patch
vendored
Normal file
11
meta/packages/gcc/gcc-4.1.1/301-missing-execinfo_h.patch
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
--- gcc-4.0.0/boehm-gc/include/gc.h-orig 2005-04-28 22:28:57.000000000 -0500
|
||||||
|
+++ gcc-4.0.0/boehm-gc/include/gc.h 2005-04-28 22:30:38.000000000 -0500
|
||||||
|
@@ -500,7 +500,7 @@
|
||||||
|
#ifdef __linux__
|
||||||
|
# include <features.h>
|
||||||
|
# if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 || __GLIBC__ > 2) \
|
||||||
|
- && !defined(__ia64__)
|
||||||
|
+ && !defined(__ia64__) && !defined(__UCLIBC__)
|
||||||
|
# ifndef GC_HAVE_BUILTIN_BACKTRACE
|
||||||
|
# define GC_HAVE_BUILTIN_BACKTRACE
|
||||||
|
# endif
|
||||||
11
meta/packages/gcc/gcc-4.1.1/302-c99-snprintf.patch
vendored
Normal file
11
meta/packages/gcc/gcc-4.1.1/302-c99-snprintf.patch
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
--- gcc-4.0.0/libstdc++-v3/include/c_std/std_cstdio.h-orig 2005-04-29 00:08:41.000000000 -0500
|
||||||
|
+++ gcc-4.0.0/libstdc++-v3/include/c_std/std_cstdio.h 2005-04-29 00:08:45.000000000 -0500
|
||||||
|
@@ -142,7 +142,7 @@
|
||||||
|
using ::vsprintf;
|
||||||
|
}
|
||||||
|
|
||||||
|
-#if _GLIBCXX_USE_C99
|
||||||
|
+#if _GLIBCXX_USE_C99 || defined(__UCLIBC__)
|
||||||
|
|
||||||
|
#undef snprintf
|
||||||
|
#undef vfscanf
|
||||||
12
meta/packages/gcc/gcc-4.1.1/303-c99-complex-ugly-hack.patch
vendored
Normal file
12
meta/packages/gcc/gcc-4.1.1/303-c99-complex-ugly-hack.patch
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
--- gcc-4.0.0/libstdc++-v3/configure-old 2005-04-30 22:04:48.061603912 -0500
|
||||||
|
+++ gcc-4.0.0/libstdc++-v3/configure 2005-04-30 22:06:13.678588152 -0500
|
||||||
|
@@ -7194,6 +7194,9 @@
|
||||||
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
|
/* end confdefs.h. */
|
||||||
|
#include <complex.h>
|
||||||
|
+#ifdef __UCLIBC__
|
||||||
|
+#error ugly hack to make sure configure test fails here for cross until uClibc supports the complex funcs
|
||||||
|
+#endif
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
24
meta/packages/gcc/gcc-4.1.1/304-index_macro.patch
vendored
Normal file
24
meta/packages/gcc/gcc-4.1.1/304-index_macro.patch
vendored
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
--- gcc-4.1.0/libstdc++-v3/include/ext/rope.mps 2006-03-24 01:49:51 +0100
|
||||||
|
+++ gcc-4.1.0/libstdc++-v3/include/ext/rope 2006-03-24 01:49:37 +0100
|
||||||
|
@@ -59,6 +59,9 @@
|
||||||
|
#include <bits/allocator.h>
|
||||||
|
#include <ext/hash_fun.h>
|
||||||
|
|
||||||
|
+/* cope w/ index defined as macro, SuSv3 proposal */
|
||||||
|
+#undef index
|
||||||
|
+
|
||||||
|
# ifdef __GC
|
||||||
|
# define __GC_CONST const
|
||||||
|
# else
|
||||||
|
--- gcc-4.1.0/libstdc++-v3/include/ext/ropeimpl.h.mps 2006-03-24 01:50:04 +0100
|
||||||
|
+++ gcc-4.1.0/libstdc++-v3/include/ext/ropeimpl.h 2006-03-24 01:50:28 +0100
|
||||||
|
@@ -53,6 +53,9 @@
|
||||||
|
#include <ext/memory> // For uninitialized_copy_n
|
||||||
|
#include <ext/numeric> // For power
|
||||||
|
|
||||||
|
+/* cope w/ index defined as macro, SuSv3 proposal */
|
||||||
|
+#undef index
|
||||||
|
+
|
||||||
|
namespace __gnu_cxx
|
||||||
|
{
|
||||||
|
using std::size_t;
|
||||||
20
meta/packages/gcc/gcc-4.1.1/602-sdk-libstdc++-includes.patch
vendored
Normal file
20
meta/packages/gcc/gcc-4.1.1/602-sdk-libstdc++-includes.patch
vendored
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
--- gcc-4.1.0/libstdc++-v3/fragment.am 2005-03-21 11:40:14.000000000 -0600
|
||||||
|
+++ gcc-4.1.0-patched/libstdc++-v3/fragment.am 2005-04-25 20:14:39.856251785 -0500
|
||||||
|
@@ -21,5 +21,5 @@
|
||||||
|
$(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once
|
||||||
|
|
||||||
|
# -I/-D flags to pass when compiling.
|
||||||
|
-AM_CPPFLAGS = $(GLIBCXX_INCLUDES)
|
||||||
|
+AM_CPPFLAGS = $(GLIBCXX_INCLUDES) -I$(toplevel_srcdir)/include
|
||||||
|
|
||||||
|
--- gcc-4.1.0/libstdc++-v3/libmath/Makefile.am 2005-03-21 11:40:18.000000000 -0600
|
||||||
|
+++ gcc-4.1.0-patched/libstdc++-v3/libmath/Makefile.am 2005-04-25 20:14:39.682280735 -0500
|
||||||
|
@@ -35,7 +35,7 @@
|
||||||
|
|
||||||
|
libmath_la_SOURCES = stubs.c
|
||||||
|
|
||||||
|
-AM_CPPFLAGS = $(CANADIAN_INCLUDES)
|
||||||
|
+AM_CPPFLAGS = $(CANADIAN_INCLUDES) -I$(toplevel_srcdir)/include
|
||||||
|
|
||||||
|
# Only compiling "C" sources in this directory.
|
||||||
|
LIBTOOL = @LIBTOOL@ --tag CC
|
||||||
25
meta/packages/gcc/gcc-4.1.1/740-sh-pr24836.patch
vendored
Normal file
25
meta/packages/gcc/gcc-4.1.1/740-sh-pr24836.patch
vendored
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
http://sourceforge.net/mailarchive/forum.php?thread_id=8959304&forum_id=5348
|
||||||
|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24836
|
||||||
|
|
||||||
|
--- gcc/gcc/configure.ac (revision 106699)
|
||||||
|
+++ gcc/gcc/configure.ac (working copy)
|
||||||
|
@@ -2446,7 +2446,7 @@
|
||||||
|
tls_first_minor=14
|
||||||
|
tls_as_opt="-m64 -Aesame --fatal-warnings"
|
||||||
|
;;
|
||||||
|
- sh-*-* | sh[34]-*-*)
|
||||||
|
+ sh-*-* | sh[34]*-*-*)
|
||||||
|
conftest_s='
|
||||||
|
.section ".tdata","awT",@progbits
|
||||||
|
foo: .long 25
|
||||||
|
--- gcc/gcc/configure
|
||||||
|
+++ gcc/gcc/configure
|
||||||
|
@@ -14846,7 +14846,7 @@
|
||||||
|
tls_first_minor=14
|
||||||
|
tls_as_opt="-m64 -Aesame --fatal-warnings"
|
||||||
|
;;
|
||||||
|
- sh-*-* | sh[34]-*-*)
|
||||||
|
+ sh-*-* | sh[34]*-*-*)
|
||||||
|
conftest_s='
|
||||||
|
.section ".tdata","awT",@progbits
|
||||||
|
foo: .long 25
|
||||||
67
meta/packages/gcc/gcc-4.1.1/800-arm-bigendian.patch
vendored
Normal file
67
meta/packages/gcc/gcc-4.1.1/800-arm-bigendian.patch
vendored
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
By Lennert Buytenhek <buytenh@wantstofly.org>
|
||||||
|
Adds support for arm*b-linux* big-endian ARM targets
|
||||||
|
|
||||||
|
See http://gcc.gnu.org/PR16350
|
||||||
|
|
||||||
|
--- gcc-4.1.0/gcc/config/arm/linux-elf.h
|
||||||
|
+++ gcc-4.1.0/gcc/config/arm/linux-elf.h
|
||||||
|
@@ -28,19 +28,33 @@
|
||||||
|
#undef TARGET_VERSION
|
||||||
|
#define TARGET_VERSION fputs (" (ARM GNU/Linux with ELF)", stderr);
|
||||||
|
|
||||||
|
+/*
|
||||||
|
+ * 'config.gcc' defines TARGET_BIG_ENDIAN_DEFAULT as 1 for arm*b-*
|
||||||
|
+ * (big endian) configurations.
|
||||||
|
+ */
|
||||||
|
+#if TARGET_BIG_ENDIAN_DEFAULT
|
||||||
|
+#define TARGET_ENDIAN_DEFAULT MASK_BIG_END
|
||||||
|
+#define TARGET_ENDIAN_OPTION "mbig-endian"
|
||||||
|
+#define TARGET_LINKER_EMULATION "armelfb_linux"
|
||||||
|
+#else
|
||||||
|
+#define TARGET_ENDIAN_DEFAULT 0
|
||||||
|
+#define TARGET_ENDIAN_OPTION "mlittle-endian"
|
||||||
|
+#define TARGET_LINKER_EMULATION "armelf_linux"
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#undef TARGET_DEFAULT_FLOAT_ABI
|
||||||
|
#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_HARD
|
||||||
|
|
||||||
|
#undef TARGET_DEFAULT
|
||||||
|
-#define TARGET_DEFAULT (0)
|
||||||
|
+#define TARGET_DEFAULT (TARGET_ENDIAN_DEFAULT)
|
||||||
|
|
||||||
|
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
|
||||||
|
|
||||||
|
-#define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux -p"
|
||||||
|
+#define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION " -p"
|
||||||
|
|
||||||
|
#undef MULTILIB_DEFAULTS
|
||||||
|
#define MULTILIB_DEFAULTS \
|
||||||
|
- { "marm", "mlittle-endian", "mhard-float", "mno-thumb-interwork" }
|
||||||
|
+ { "marm", TARGET_ENDIAN_OPTION, "mhard-float", "mno-thumb-interwork" }
|
||||||
|
|
||||||
|
/* Now we define the strings used to build the spec file. */
|
||||||
|
#undef LIB_SPEC
|
||||||
|
@@ -61,7 +75,7 @@
|
||||||
|
%{rdynamic:-export-dynamic} \
|
||||||
|
%{!dynamic-linker:-dynamic-linker " LINUX_TARGET_INTERPRETER "} \
|
||||||
|
-X \
|
||||||
|
- %{mbig-endian:-EB}" \
|
||||||
|
+ %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
|
||||||
|
SUBTARGET_EXTRA_LINK_SPEC
|
||||||
|
|
||||||
|
#undef LINK_SPEC
|
||||||
|
--- gcc-4.1.0/gcc/config.gcc
|
||||||
|
+++ gcc-4.1.0/gcc/config.gcc
|
||||||
|
@@ -672,6 +672,11 @@
|
||||||
|
;;
|
||||||
|
arm*-*-linux*) # ARM GNU/Linux with ELF
|
||||||
|
tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h"
|
||||||
|
+ case $target in
|
||||||
|
+ arm*b-*)
|
||||||
|
+ tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
|
||||||
|
+ ;;
|
||||||
|
+ esac
|
||||||
|
tmake_file="${tmake_file} t-linux arm/t-arm"
|
||||||
|
case ${target} in
|
||||||
|
arm*-*-linux-gnueabi)
|
||||||
4
meta/packages/gcc/gcc-4.1.1/README
vendored
Normal file
4
meta/packages/gcc/gcc-4.1.1/README
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
The numbered patches come from
|
||||||
|
http://www.uclibc.org/cgi-bin/viewcvs.cgi/trunk/buildroot/toolchain/gcc/4.1.1/
|
||||||
|
Other patches are locally added to fix things (mostly inherited and reapplied
|
||||||
|
from gcc 3.4.4 where applicable)
|
||||||
24
meta/packages/gcc/gcc-4.1.1/arm-nolibfloat.patch
vendored
Normal file
24
meta/packages/gcc/gcc-4.1.1/arm-nolibfloat.patch
vendored
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# Dimitry Andric <dimitry@andric.com>, 2004-05-01
|
||||||
|
#
|
||||||
|
# * Removed the extra -lfloat option from LIBGCC_SPEC, since it isn't needed
|
||||||
|
# anymore. (The required functions are now in libgcc.)
|
||||||
|
#
|
||||||
|
# Fixes errors like
|
||||||
|
# arm-softfloat-linux-gnu/3.4.0/../../../../arm-softfloat-linux-gnu/bin/ld: cannot find -lfloat
|
||||||
|
# collect2: ld returned 1 exit status
|
||||||
|
# make[2]: *** [arm-softfloat-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/iconvdata/ISO8859-1.so] Error 1
|
||||||
|
# when building glibc-2.3.3 with gcc-3.4.0 for arm-softfloat
|
||||||
|
|
||||||
|
Index: gcc-4.0.2/gcc/config/arm/linux-elf.h
|
||||||
|
===================================================================
|
||||||
|
--- gcc-4.0.2.orig/gcc/config/arm/linux-elf.h 2005-03-04 16:14:01.000000000 +0000
|
||||||
|
+++ gcc-4.0.2/gcc/config/arm/linux-elf.h 2005-11-11 18:02:54.000000000 +0000
|
||||||
|
@@ -56,7 +56,7 @@
|
||||||
|
%{shared:-lc} \
|
||||||
|
%{!shared:%{profile:-lc_p}%{!profile:-lc}}"
|
||||||
|
|
||||||
|
-#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
|
||||||
|
+#define LIBGCC_SPEC "-lgcc"
|
||||||
|
|
||||||
|
/* Provide a STARTFILE_SPEC appropriate for GNU/Linux. Here we add
|
||||||
|
the GNU/Linux magical crtbegin.o file (see crtstuff.c) which
|
||||||
16
meta/packages/gcc/gcc-4.1.1/arm-softfloat.patch
vendored
Normal file
16
meta/packages/gcc/gcc-4.1.1/arm-softfloat.patch
vendored
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
Index: gcc-4.0.2/gcc/config/arm/t-linux
|
||||||
|
===================================================================
|
||||||
|
--- gcc-4.0.2.orig/gcc/config/arm/t-linux 2004-05-15 12:41:35.000000000 +0000
|
||||||
|
+++ gcc-4.0.2/gcc/config/arm/t-linux 2005-11-11 16:07:53.000000000 +0000
|
||||||
|
@@ -4,7 +4,10 @@
|
||||||
|
LIBGCC2_DEBUG_CFLAGS = -g0
|
||||||
|
|
||||||
|
LIB1ASMSRC = arm/lib1funcs.asm
|
||||||
|
-LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx
|
||||||
|
+LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \
|
||||||
|
+ _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
|
||||||
|
+ _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \
|
||||||
|
+ _fixsfsi _fixunssfsi _floatdidf _floatdisf
|
||||||
|
|
||||||
|
# MULTILIB_OPTIONS = mhard-float/msoft-float
|
||||||
|
# MULTILIB_DIRNAMES = hard-float soft-float
|
||||||
29
meta/packages/gcc/gcc-4.1.1/arm-thumb-cache.patch
vendored
Normal file
29
meta/packages/gcc/gcc-4.1.1/arm-thumb-cache.patch
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
--- gcc-4.1.1/gcc/config/arm/linux-gas.h- 2005-06-25 03:22:41.000000000 +0200
|
||||||
|
+++ gcc-4.1.1/gcc/config/arm/linux-gas.h 2006-06-18 10:23:46.000000000 +0200
|
||||||
|
@@ -44,6 +44,7 @@
|
||||||
|
|
||||||
|
/* Clear the instruction cache from `beg' to `end'. This makes an
|
||||||
|
inline system call to SYS_cacheflush. */
|
||||||
|
+#if !defined(__thumb__)
|
||||||
|
#define CLEAR_INSN_CACHE(BEG, END) \
|
||||||
|
{ \
|
||||||
|
register unsigned long _beg __asm ("a1") = (unsigned long) (BEG); \
|
||||||
|
@@ -53,3 +54,18 @@
|
||||||
|
: "=r" (_beg) \
|
||||||
|
: "0" (_beg), "r" (_end), "r" (_flg)); \
|
||||||
|
}
|
||||||
|
+#else
|
||||||
|
+#define CLEAR_INSN_CACHE(BEG, END) \
|
||||||
|
+{ \
|
||||||
|
+ register unsigned long _beg __asm ("a1") = (unsigned long) (BEG); \
|
||||||
|
+ register unsigned long _end __asm ("a2") = (unsigned long) (END); \
|
||||||
|
+ register unsigned long _flg __asm ("a3") = 0; \
|
||||||
|
+ register unsigned long _swi __asm ("a4") = 0xf0002; \
|
||||||
|
+ __asm __volatile ("push {r7}\n" \
|
||||||
|
+ " mov r7,a4\n" \
|
||||||
|
+ " swi 0 @ sys_cacheflush\n" \
|
||||||
|
+ " pop {r7}\n" \
|
||||||
|
+ : "=r" (_beg) \
|
||||||
|
+ : "0" (_beg), "r" (_end), "r" (_flg), "r" (_swi)); \
|
||||||
|
+}
|
||||||
|
+#endif
|
||||||
64
meta/packages/gcc/gcc-4.1.1/arm-thumb.patch
vendored
Normal file
64
meta/packages/gcc/gcc-4.1.1/arm-thumb.patch
vendored
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
|
||||||
|
#
|
||||||
|
# Patch managed by http://www.holgerschurig.de/patcher.html
|
||||||
|
#
|
||||||
|
|
||||||
|
--- gcc-4.1.1/gcc/config/arm/lib1funcs.asm~gcc
|
||||||
|
+++ gcc-4.1.1/gcc/config/arm/lib1funcs.asm
|
||||||
|
@@ -995,10 +995,24 @@
|
||||||
|
.code 32
|
||||||
|
FUNC_START div0
|
||||||
|
|
||||||
|
+#if ! defined __thumb__
|
||||||
|
stmfd sp!, {r1, lr}
|
||||||
|
mov r0, #SIGFPE
|
||||||
|
bl SYM(raise) __PLT__
|
||||||
|
RETLDM r1
|
||||||
|
+#else
|
||||||
|
+ push {r1, lr}
|
||||||
|
+ mov r0, #SIGFPE
|
||||||
|
+ bl SYM(raise) __PLT__
|
||||||
|
+#if __ARM_ARCH__ > 4
|
||||||
|
+ pop {r1, pc}
|
||||||
|
+#else
|
||||||
|
+ @ on 4T that won't work
|
||||||
|
+ pop {r1}
|
||||||
|
+ pop {r3}
|
||||||
|
+ bx r3
|
||||||
|
+#endif
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
FUNC_END div0
|
||||||
|
|
||||||
|
@@ -1141,11 +1155,12 @@
|
||||||
|
code here switches to the correct mode before executing the function. */
|
||||||
|
|
||||||
|
.text
|
||||||
|
- .align 0
|
||||||
|
+ .align 1
|
||||||
|
.force_thumb
|
||||||
|
|
||||||
|
.macro call_via register
|
||||||
|
THUMB_FUNC_START _call_via_\register
|
||||||
|
+ .hidden SYM (_call_via_\register)
|
||||||
|
|
||||||
|
bx \register
|
||||||
|
nop
|
||||||
|
@@ -1242,6 +1257,7 @@
|
||||||
|
.code 16
|
||||||
|
|
||||||
|
THUMB_FUNC_START _interwork_call_via_\register
|
||||||
|
+ .hidden SYM (_interwork_call_via_\register)
|
||||||
|
|
||||||
|
bx pc
|
||||||
|
nop
|
||||||
|
--- gcc-4.1.1/gcc/config/arm/t-linux~gcc
|
||||||
|
+++ gcc-4.1.1/gcc/config/arm/t-linux
|
||||||
|
@@ -7,6 +7,7 @@
|
||||||
|
LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \
|
||||||
|
_negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
|
||||||
|
_truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \
|
||||||
|
+ _call_via_rX \
|
||||||
|
_fixsfsi _fixunssfsi _floatdidf _floatdisf
|
||||||
|
|
||||||
|
# MULTILIB_OPTIONS = mhard-float/msoft-float
|
||||||
75
meta/packages/gcc/gcc-4.1.1/cse.patch
vendored
Normal file
75
meta/packages/gcc/gcc-4.1.1/cse.patch
vendored
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
-- gcc-4_1-branch/gcc/cse.c 2006/07/20 14:20:26 115619
|
||||||
|
+++ gcc-4_1-branch/gcc/cse.c 2006/07/20 15:07:25 115620
|
||||||
|
@@ -4697,6 +4697,8 @@
|
||||||
|
unsigned src_const_hash;
|
||||||
|
/* Table entry for constant equivalent for SET_SRC, if any. */
|
||||||
|
struct table_elt *src_const_elt;
|
||||||
|
+ /* Table entry for the destination address. */
|
||||||
|
+ struct table_elt *dest_addr_elt;
|
||||||
|
};
|
||||||
|
|
||||||
|
static void
|
||||||
|
@@ -5936,6 +5938,40 @@
|
||||||
|
so that the destination goes into that class. */
|
||||||
|
sets[i].src_elt = src_eqv_elt;
|
||||||
|
|
||||||
|
+ /* Record destination addresses in the hash table. This allows us to
|
||||||
|
+ check if they are invalidated by other sets. */
|
||||||
|
+ for (i = 0; i < n_sets; i++)
|
||||||
|
+ {
|
||||||
|
+ if (sets[i].rtl)
|
||||||
|
+ {
|
||||||
|
+ rtx x = sets[i].inner_dest;
|
||||||
|
+ struct table_elt *elt;
|
||||||
|
+ enum machine_mode mode;
|
||||||
|
+ unsigned hash;
|
||||||
|
+
|
||||||
|
+ if (MEM_P (x))
|
||||||
|
+ {
|
||||||
|
+ x = XEXP (x, 0);
|
||||||
|
+ mode = GET_MODE (x);
|
||||||
|
+ hash = HASH (x, mode);
|
||||||
|
+ elt = lookup (x, hash, mode);
|
||||||
|
+ if (!elt)
|
||||||
|
+ {
|
||||||
|
+ if (insert_regs (x, NULL, 0))
|
||||||
|
+ {
|
||||||
|
+ rehash_using_reg (x);
|
||||||
|
+ hash = HASH (x, mode);
|
||||||
|
+ }
|
||||||
|
+ elt = insert (x, NULL, hash, mode);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ sets[i].dest_addr_elt = elt;
|
||||||
|
+ }
|
||||||
|
+ else
|
||||||
|
+ sets[i].dest_addr_elt = NULL;
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
invalidate_from_clobbers (x);
|
||||||
|
|
||||||
|
/* Some registers are invalidated by subroutine calls. Memory is
|
||||||
|
@@ -6028,12 +6064,20 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
/* We may have just removed some of the src_elt's from the hash table.
|
||||||
|
- So replace each one with the current head of the same class. */
|
||||||
|
+ So replace each one with the current head of the same class.
|
||||||
|
+ Also check if destination addresses have been removed. */
|
||||||
|
|
||||||
|
for (i = 0; i < n_sets; i++)
|
||||||
|
if (sets[i].rtl)
|
||||||
|
{
|
||||||
|
- if (sets[i].src_elt && sets[i].src_elt->first_same_value == 0)
|
||||||
|
+ if (sets[i].dest_addr_elt
|
||||||
|
+ && sets[i].dest_addr_elt->first_same_value == 0)
|
||||||
|
+ {
|
||||||
|
+ /* The elt was removed, which means this destination s not
|
||||||
|
+ valid after this instruction. */
|
||||||
|
+ sets[i].rtl = NULL_RTX;
|
||||||
|
+ }
|
||||||
|
+ else if (sets[i].src_elt && sets[i].src_elt->first_same_value == 0)
|
||||||
|
/* If elt was removed, find current head of same class,
|
||||||
|
or 0 if nothing remains of that class. */
|
||||||
|
{
|
||||||
22
meta/packages/gcc/gcc-4.1.1/gcc41-configure.in.patch
vendored
Normal file
22
meta/packages/gcc/gcc-4.1.1/gcc41-configure.in.patch
vendored
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
--- gcc-3.4.4/configure.in.orig 2005-08-09 19:57:51.504323183 -0700
|
||||||
|
+++ gcc-3.4.4/configure.in 2005-08-09 20:00:12.073168623 -0700
|
||||||
|
@@ -1907,7 +1907,7 @@
|
||||||
|
*) gxx_include_dir=${with_gxx_include_dir} ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
-FLAGS_FOR_TARGET=
|
||||||
|
+FLAGS_FOR_TARGET="$ARCH_FLAGS_FOR_TARGET"
|
||||||
|
case " $target_configdirs " in
|
||||||
|
*" newlib "*)
|
||||||
|
case " $target_configargs " in
|
||||||
|
--- gcc-3.4.4/configure.orig 2005-08-09 21:02:29.668360660 -0700
|
||||||
|
+++ gcc-3.4.4/configure 2005-08-09 21:02:50.157649970 -0700
|
||||||
|
@@ -2669,7 +2669,7 @@
|
||||||
|
*) gxx_include_dir=${with_gxx_include_dir} ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
-FLAGS_FOR_TARGET=
|
||||||
|
+FLAGS_FOR_TARGET="$ARCH_FLAGS_FOR_TARGET"
|
||||||
|
case " $target_configdirs " in
|
||||||
|
*" newlib "*)
|
||||||
|
case " $target_configargs " in
|
||||||
22
meta/packages/gcc/gcc-4.1.1/ldflags.patch
vendored
Normal file
22
meta/packages/gcc/gcc-4.1.1/ldflags.patch
vendored
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
--- /tmp/Makefile.in 2006-02-23 20:56:01.399758728 +0100
|
||||||
|
+++ gcc-4.1-20060217/Makefile.in 2006-02-23 20:56:16.874406224 +0100
|
||||||
|
@@ -334,7 +334,7 @@
|
||||||
|
CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
|
||||||
|
LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
|
||||||
|
LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
|
||||||
|
-LDFLAGS_FOR_TARGET =
|
||||||
|
+LDFLAGS_FOR_TARGET = @LDFLAGS@
|
||||||
|
PICFLAG_FOR_TARGET =
|
||||||
|
|
||||||
|
# ------------------------------------
|
||||||
|
--- /tmp/Makefile.tpl 2006-02-23 20:50:34.077519272 +0100
|
||||||
|
+++ gcc-4.1-20060217/Makefile.tpl 2006-02-23 21:04:31.092273688 +0100
|
||||||
|
@@ -337,7 +337,7 @@
|
||||||
|
CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
|
||||||
|
LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
|
||||||
|
LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
|
||||||
|
-LDFLAGS_FOR_TARGET =
|
||||||
|
+LDFLAGS_FOR_TARGET = @LDFLAGS@
|
||||||
|
PICFLAG_FOR_TARGET =
|
||||||
|
|
||||||
|
# ------------------------------------
|
||||||
31
meta/packages/gcc/gcc-4.1.1/zecke-no-host-includes.patch
vendored
Normal file
31
meta/packages/gcc/gcc-4.1.1/zecke-no-host-includes.patch
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
Index: gcc-4.0.2/gcc/c-incpath.c
|
||||||
|
===================================================================
|
||||||
|
--- gcc-4.0.2.orig/gcc/c-incpath.c 2005-01-23 16:05:27.000000000 +0100
|
||||||
|
+++ gcc-4.0.2/gcc/c-incpath.c 2006-05-15 21:23:02.000000000 +0200
|
||||||
|
@@ -350,6 +350,26 @@
|
||||||
|
p->construct = 0;
|
||||||
|
p->user_supplied_p = user_supplied_p;
|
||||||
|
|
||||||
|
+#ifdef CROSS_COMPILE
|
||||||
|
+ /* A common error when cross compiling is including
|
||||||
|
+ host headers. This code below will try to fail fast
|
||||||
|
+ for cross compiling. Currently we consider /usr/include,
|
||||||
|
+ /opt/include and /sw/include as harmful. */
|
||||||
|
+ {
|
||||||
|
+ /* printf("Adding Path: %s\n", p->name ); */
|
||||||
|
+ if( strstr(p->name, "/usr/include" ) == p->name ) {
|
||||||
|
+ fprintf(stderr, _("CROSS COMPILE Badness: /usr/include in INCLUDEPATH: %s\n"), p->name);
|
||||||
|
+ abort();
|
||||||
|
+ } else if( strstr(p->name, "/sw/include") == p->name ) {
|
||||||
|
+ fprintf(stderr, _("CROSS COMPILE Badness: /sw/include in INCLUDEPATH: %s\n"), p->name);
|
||||||
|
+ abort();
|
||||||
|
+ } else if( strstr(p->name, "/opt/include") == p->name ) {
|
||||||
|
+ fprintf(stderr, _("CROSS COMPILE Badness: /opt/include in INCLUDEPATH: %s\n"), p->name);
|
||||||
|
+ abort();
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
add_cpp_dir_path (p, chain);
|
||||||
|
}
|
||||||
|
|
||||||
12
meta/packages/gcc/gcc-4.1.1/zecke-xgcc-cpp.patch
vendored
Normal file
12
meta/packages/gcc/gcc-4.1.1/zecke-xgcc-cpp.patch
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
Index: gcc-4.1.1/Makefile.in
|
||||||
|
===================================================================
|
||||||
|
--- gcc-4.1.1.orig/Makefile.in 2006-08-06 13:32:44.000000000 +0200
|
||||||
|
+++ gcc-4.1.1/Makefile.in 2006-08-06 13:32:46.000000000 +0200
|
||||||
|
@@ -194,6 +194,7 @@
|
||||||
|
AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
|
||||||
|
CC="$(CC_FOR_TARGET)"; export CC; \
|
||||||
|
CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
|
||||||
|
+ CPP="$(CC_FOR_TARGET) -E"; export CCP; \
|
||||||
|
CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
|
||||||
|
CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
|
||||||
|
CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
|
||||||
30
meta/packages/gcc/gcc-cross-initial_4.1.1.bb
Normal file
30
meta/packages/gcc/gcc-cross-initial_4.1.1.bb
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
require gcc-cross_${PV}.bb
|
||||||
|
|
||||||
|
DEPENDS = "virtual/${TARGET_PREFIX}binutils"
|
||||||
|
DEPENDS += "${@['virtual/${TARGET_PREFIX}libc-initial',''][bb.data.getVar('TARGET_ARCH', d, 1) in ['arm', 'armeb', 'mips', 'mipsel']]}"
|
||||||
|
PROVIDES = "virtual/${TARGET_PREFIX}gcc-initial"
|
||||||
|
PACKAGES = ""
|
||||||
|
|
||||||
|
# This is intended to be a -very- basic config
|
||||||
|
EXTRA_OECONF = "--with-local-prefix=${CROSS_DIR}/${TARGET_SYS} \
|
||||||
|
--with-newlib \
|
||||||
|
--disable-shared \
|
||||||
|
--disable-threads \
|
||||||
|
--disable-multilib \
|
||||||
|
--disable-__cxa_atexit \
|
||||||
|
--disable-libmudflap \
|
||||||
|
--disable-libssp \
|
||||||
|
--enable-languages=c \
|
||||||
|
--enable-target-optspace \
|
||||||
|
--program-prefix=${TARGET_PREFIX} \
|
||||||
|
${@get_gcc_fpu_setting(bb, d)}"
|
||||||
|
|
||||||
|
do_stage_prepend () {
|
||||||
|
mkdir -p ${CROSS_DIR}/lib/gcc/${TARGET_SYS}/${BINV}
|
||||||
|
ln -sf libgcc.a ${CROSS_DIR}/lib/gcc/${TARGET_SYS}/${BINV}/libgcc_eh.a
|
||||||
|
}
|
||||||
|
|
||||||
|
# Override the method from gcc-cross so we don't try to install libgcc
|
||||||
|
do_install () {
|
||||||
|
oe_runmake 'DESTDIR=${D}' install
|
||||||
|
}
|
||||||
18
meta/packages/gcc/gcc-cross_4.1.1.bb
Normal file
18
meta/packages/gcc/gcc-cross_4.1.1.bb
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
require gcc_${PV}.bb
|
||||||
|
# path mangling, needed by the cross packaging
|
||||||
|
require gcc-paths-cross.inc
|
||||||
|
inherit cross
|
||||||
|
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gcc-${PV}"
|
||||||
|
# NOTE: split PR. If the main .oe changes something that affects its *build*
|
||||||
|
# remember to increment this one too.
|
||||||
|
PR = "r6"
|
||||||
|
|
||||||
|
DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc gmp-native mpfr-native"
|
||||||
|
PROVIDES = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
|
||||||
|
|
||||||
|
# cross build
|
||||||
|
require gcc3-build-cross.inc
|
||||||
|
# cross packaging
|
||||||
|
require gcc-package-cross.inc
|
||||||
|
|
||||||
|
EXTRA_OECONF += "--with-mpfr=${STAGING_DIR}/${BUILD_SYS}"
|
||||||
47
meta/packages/gcc/gcc_4.1.1.bb
Normal file
47
meta/packages/gcc/gcc_4.1.1.bb
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
PR = "r6"
|
||||||
|
DESCRIPTION = "The GNU cc and gcc C compilers."
|
||||||
|
HOMEPAGE = "http://www.gnu.org/software/gcc/"
|
||||||
|
SECTION = "devel"
|
||||||
|
LICENSE = "GPL"
|
||||||
|
|
||||||
|
inherit autotools gettext
|
||||||
|
|
||||||
|
require gcc-package.inc
|
||||||
|
|
||||||
|
SRC_URI = "http://ftp.gnu.org/pub/gnu/gcc/gcc-4.1.1/gcc-4.1.1.tar.bz2 \
|
||||||
|
file://100-uclibc-conf.patch;patch=1 \
|
||||||
|
file://110-arm-eabi.patch;patch=1 \
|
||||||
|
file://200-uclibc-locale.patch;patch=1 \
|
||||||
|
file://300-libstdc++-pic.patch;patch=1 \
|
||||||
|
file://301-missing-execinfo_h.patch;patch=1 \
|
||||||
|
file://302-c99-snprintf.patch;patch=1 \
|
||||||
|
file://303-c99-complex-ugly-hack.patch;patch=1 \
|
||||||
|
file://304-index_macro.patch;patch=1 \
|
||||||
|
file://602-sdk-libstdc++-includes.patch;patch=1 \
|
||||||
|
file://740-sh-pr24836.patch;patch=1 \
|
||||||
|
file://800-arm-bigendian.patch;patch=1 \
|
||||||
|
file://arm-nolibfloat.patch;patch=1 \
|
||||||
|
file://arm-softfloat.patch;patch=1 \
|
||||||
|
file://gcc41-configure.in.patch;patch=1 \
|
||||||
|
file://arm-thumb.patch;patch=1 \
|
||||||
|
file://arm-thumb-cache.patch;patch=1 \
|
||||||
|
file://ldflags.patch;patch=1 \
|
||||||
|
file://cse.patch;patch=1 \
|
||||||
|
file://zecke-xgcc-cpp.patch;patch=1 "
|
||||||
|
|
||||||
|
SRC_URI_append_fail-fast = " file://zecke-no-host-includes.patch;patch=1 "
|
||||||
|
|
||||||
|
#Set the fortran bits
|
||||||
|
FORTRAN = ""
|
||||||
|
HAS_GFORTRAN = "no"
|
||||||
|
HAS_G2C = "no"
|
||||||
|
|
||||||
|
#Set the java bits
|
||||||
|
JAVA_arm = ""
|
||||||
|
|
||||||
|
LANGUAGES = "c,c++"
|
||||||
|
require gcc3-build.inc
|
||||||
|
|
||||||
|
|
||||||
|
EXTRA_OECONF += " --disable-libssp "
|
||||||
|
|
||||||
Reference in New Issue
Block a user