Magellan Linux

Annotation of /trunk/gcc/patches/gcc-3.4.3-uclibc_conf-1.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 169 - (hide annotations) (download)
Tue May 8 21:36:54 2007 UTC (17 years ago) by niro
File size: 3740 byte(s)
-moved to patches subdir

1 niro 169 Submitted By: Robert Connolly <robert at linuxfromscratch dot org> (ashes)
2     Date: 2004-11-14
3     Initial Package Version: 3.4.3
4     Upstream Status: Not submitted - Hack
5     ORIGIN: http://www.uclibc.org/cgi-bin/cvsweb/buildroot/toolchain/\
6     gcc/3.4.2/100-uclibc-conf.patch
7     Description: This adds --target=*-*-linux-uclibc* needed for building a
8     uClibc toolchain. All specs hunks and non-i386 hunks were removed from
9     the original patch. Use this with the gcc-specs_conf patch.
10    
11     Also see:
12     http://www.linuxfromscratch.org/hlfs/
13     http://www.uclibc.org/
14    
15     diff -urN gcc-3.4.1-dist/gcc/config/t-linux-uclibc gcc-3.4.1/gcc/config/t-linux-uclibc
16     --- gcc-3.4.1-dist/gcc/config/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
17     +++ gcc-3.4.1/gcc/config/t-linux-uclibc 2004-08-12 15:54:43.000000000 -0500
18     @@ -0,0 +1,15 @@
19     +T_CFLAGS = -DUSE_UCLIBC
20     +
21     +# Compile crtbeginS.o and crtendS.o with pic.
22     +CRTSTUFF_T_CFLAGS_S = $(CRTSTUFF_T_CFLAGS) -fPIC
23     +# Compile libgcc2.a with pic.
24     +TARGET_LIBGCC2_CFLAGS = -fPIC
25     +
26     +# Override t-slibgcc-elf-ver to export some libgcc symbols with
27     +# the symbol versions that glibc used.
28     +#SHLIB_MAPFILES += $(srcdir)/config/libgcc-glibc.ver
29     +
30     +# Use unwind-dw2-fde
31     +LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
32     + $(srcdir)/unwind-sjlj.c $(srcdir)/gthr-gnat.c $(srcdir)/unwind-c.c
33     +LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h
34     diff -urN gcc-3.4.1-dist/gcc/config.gcc gcc-3.4.1/gcc/config.gcc
35     --- gcc-3.4.1-dist/gcc/config.gcc 2004-04-21 10:12:35.000000000 -0500
36     +++ gcc-3.4.1/gcc/config.gcc 2004-08-12 15:59:46.000000000 -0500
37     @@ -988,6 +998,11 @@
38     thread_file='single'
39     fi
40     ;;
41     +i[34567]86-*-linux*uclibc*) # Intel 80386's running GNU/Linux
42     + # with ELF format using uClibc
43     + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
44     + tmake_file="t-slibgcc-elf-ver t-linux-uclibc i386/t-crtstuff"
45     + ;;
46     i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
47     # with ELF format using glibc 2
48     # aka GNU/Linux C library 6
49     diff -urN gcc-3.4.1-dist/libtool.m4 gcc-3.4.1/libtool.m4
50     --- gcc-3.4.1-dist/libtool.m4 2004-05-18 04:08:37.000000000 -0500
51     +++ gcc-3.4.1/libtool.m4 2004-08-12 15:54:43.000000000 -0500
52     @@ -689,6 +689,11 @@
53     lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
54     ;;
55    
56     +linux-uclibc*)
57     + lt_cv_deplibs_check_method=pass_all
58     + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
59     + ;;
60     +
61     netbsd*)
62     if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
63     [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
64     diff -urN gcc-3.4.1-dist/ltconfig gcc-3.4.1/ltconfig
65     --- gcc-3.4.1-dist/ltconfig 2004-03-05 15:05:41.000000000 -0600
66     +++ gcc-3.4.1/ltconfig 2004-08-12 15:55:48.000000000 -0500
67     @@ -602,6 +602,7 @@
68    
69     # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
70     case $host_os in
71     +linux-uclibc*) ;;
72     linux-gnu*) ;;
73     linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
74     esac
75     @@ -1262,6 +1263,24 @@
76     dynamic_linker='GNU/Linux ld.so'
77     ;;
78    
79     +linux-uclibc*)
80     + version_type=linux
81     + need_lib_prefix=no
82     + need_version=no
83     + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
84     + soname_spec='${libname}${release}.so$major'
85     + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
86     + shlibpath_var=LD_LIBRARY_PATH
87     + shlibpath_overrides_runpath=no
88     + # This implies no fast_install, which is unacceptable.
89     + # Some rework will be needed to allow for fast_install
90     + # before this can be enabled.
91     + # Note: copied from linux-gnu, and may not be appropriate.
92     + hardcode_into_libs=yes
93     + # Assume using the uClibc dynamic linker.
94     + dynamic_linker="uClibc ld.so"
95     + ;;
96     +
97     netbsd*)
98     need_lib_prefix=no
99     need_version=no

Properties

Name Value
svn:executable *