Magellan Linux

Annotation of /trunk/uclibc/patches/uclibc-0.9.29-fixes-1.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 455 - (hide annotations) (download)
Thu Jan 31 11:40:41 2008 UTC (16 years, 4 months ago) by niro
File size: 2992 byte(s)
-uclibc-0.9.29-r1

1 niro 455 Submitted By: Robert Connolly <robert at linuxfromscratch dot org> (ashes)
2     Date: 2007-12-28
3     Initial Package Version: 0.9.29
4     Upstream Status: From Upstream
5     Origin: http://uclibc.org/cgi-bin/viewcvs.cgi?rev=18907&view=rev
6     http://busybox.net/~aldot/uClibc/uClibc-0.9.29-fix-internal_function-definition.patch
7     Description: This is a bugfix. Some packages will not compile without this
8     patch. Also see:
9     http://linuxfromscratch.org/pipermail/hlfs-dev/2007-July/003676.html
10    
11     aldot
12     Sun Jun 24 10:23:54 2007 PDT
13     - make sure to define _LIBC in libc-symbols.h before including anything else.
14     - internal_function is only used inside libc, so do not define it in
15     uClibc_arch_features.h on i386 if we are outside of libc.
16    
17     diff -Naur uClibc-0.9.29.orig/include/libc-symbols.h uClibc-0.9.29/include/libc-symbols.h
18     --- uClibc-0.9.29.orig/include/libc-symbols.h 2007-01-29 14:33:27.000000000 +0000
19     +++ uClibc-0.9.29/include/libc-symbols.h 2007-12-28 07:36:15.000000000 +0000
20     @@ -22,6 +22,16 @@
21     #ifndef _LIBC_SYMBOLS_H
22     #define _LIBC_SYMBOLS_H 1
23    
24     +/* This is defined for the compilation of all C library code. features.h
25     + tests this to avoid inclusion of stubs.h while compiling the library,
26     + before stubs.h has been generated. Some library code that is shared
27     + with other packages also tests this symbol to see if it is being
28     + compiled as part of the C library. We must define this before including
29     + config.h, because it makes some definitions conditional on whether libc
30     + itself is being compiled, or just some generator program. */
31     +#define _LIBC 1
32     +
33     +
34     /* This file's macros are included implicitly in the compilation of every
35     file in the C library by -imacros.
36    
37     @@ -40,16 +50,6 @@
38    
39     #include <bits/uClibc_arch_features.h>
40    
41     -
42     -/* This is defined for the compilation of all C library code. features.h
43     - tests this to avoid inclusion of stubs.h while compiling the library,
44     - before stubs.h has been generated. Some library code that is shared
45     - with other packages also tests this symbol to see if it is being
46     - compiled as part of the C library. We must define this before including
47     - config.h, because it makes some definitions conditional on whether libc
48     - itself is being compiled, or just some generator program. */
49     -#define _LIBC 1
50     -
51     /* Enable declarations of GNU extensions, since we are compiling them. */
52     #define _GNU_SOURCE 1
53    
54     diff -Naur uClibc-0.9.29.orig/libc/sysdeps/linux/i386/bits/uClibc_arch_features.h uClibc-0.9.29/libc/sysdeps/linux/i386/bits/uClibc_arch_features.h
55     --- uClibc-0.9.29.orig/libc/sysdeps/linux/i386/bits/uClibc_arch_features.h 2006-03-04 00:54:43.000000000 +0000
56     +++ uClibc-0.9.29/libc/sysdeps/linux/i386/bits/uClibc_arch_features.h 2007-12-28 07:36:15.000000000 +0000
57     @@ -42,6 +42,8 @@
58     /* define if target supports IEEE signed zero floats */
59     #define __UCLIBC_HAVE_SIGNED_ZERO__
60    
61     +#if defined _LIBC
62     #define internal_function __attribute__ ((regparm (3), stdcall))
63     +#endif
64    
65     #endif /* _BITS_UCLIBC_ARCH_FEATURES_H */