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] |
Hi Yann, i just need to modify some default prefix's in uclibc library to use with android rw partition. like: in sysroot/usr/include/paths.h - from /* Default search path. */ #define _PATH_DEFPATH "/usr/bin:/bin" - to #define _PATH_DEFPATH "/data/local/bin:/system/bin" --------------- - from #define _PATH_WTMP "/var/log/wtmp" - to #define _PATH_WTMP "/data/local/var/log/wtmp" etc... i put a patch in $PREFIX/lib/ct-ng-1.10.0/patches/uClibc/0.9.30.2/ but the files is not modified. a part from a patch : (named 260-android-include-path-on-headers.patch) --- a/include/netdb.h 2011-03-25 14:20:22.917558122 +0100 +++ b/include/netdb.h 2011-03-25 13:48:13.086586918 +0100 @@ -43,12 +43,12 @@ #include <bits/netdb.h> /* Absolute file name for network data base files. */ -#define _PATH_HEQUIV "/etc/hosts.equiv" -#define _PATH_HOSTS "/etc/hosts" -#define _PATH_NETWORKS "/etc/networks" -#define _PATH_NSSWITCH_CONF "/etc/nsswitch.conf" -#define _PATH_PROTOCOLS "/etc/protocols" -#define _PATH_SERVICES "/etc/services" +#define _PATH_HEQUIV "/data/local/etc/hosts.equiv" +#define _PATH_HOSTS "/data/local/etc/hosts" +#define _PATH_NETWORKS "/data/local/etc/networks" +#define _PATH_NSSWITCH_CONF "/data/local/etc/nsswitch.conf" +#define _PATH_PROTOCOLS "/data/local/etc/protocols" +#define _PATH_SERVICES "/data/local/etc/services" __BEGIN_DECLS @@ -65,9 +65,6 @@ /* Function to get address of global `h_errno' variable. */ extern int *__h_errno_location (void) __THROW __attribute__ ((__const__)); -#ifdef _LIBC -# define __set_h_errno(x) (h_errno = (x)) -#endif /* Possible values left in `h_errno'. */ #define NETDB_INTERNAL -1 /* See errno. */ diff -urN a/include/netinet/ether.h b/include/netinet/ether.h --- a/include/netinet/ether.h 2011-03-25 14:21:37.565581615 +0100 +++ b/include/netinet/ether.h 2011-03-25 13:46:27.993657330 +0100 @@ -25,7 +25,7 @@ /* Get definition of `struct ether_addr'. */ #include <netinet/if_ether.h> etc.... Thanks Le Fri, 25 Mar 2011 16:12:15 +0100 "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> a Ãcrit: > I am sorry, but I do not understand what you want... > > bits/uClibc_config.h is a generated file, and contains the > configuration options of uClibc. Surely, you do *not* want to patch > it! If the config options are not satisfactory to you, then you can > provide your own uClibc .config file, with the options you need. > > For the others, they are existing files, and if you need to patch > them, simply put your patch in patches/uClibc/0.9.30.2/xxx-name.patch > (where xxx is a 3-digit number. > > What exactly do you want to do? What is the need to patch generated > files? > > Regards, > Yann E. MORIN. > -- 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] |