Commit Graph

14 Commits

Author SHA1 Message Date
Ross Burton eef85f8b6b site: add xorg_cv_malloc0_returns_null
util-macros 1.18 will look in the autoconf cache for this value so instead of
using overrides in xorg-lib-common, use the per-libc site cache.

Alert readers may notice that the site file claims that glibc returns NULL from
malloc(), when the previous change (e628c8aba0189de30de2833882b9999ff3b6547a)
claimed that it didn't.  The previous change was incorrect, whilst malloc(0)
returns a valid pointer, realloc(p,0) does in fact return NULL, so the Xlib
wrapper functions are needed.

(From OE-Core rev: ecbf3f81f6d2929921e57066c2dd327d41d8e286)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-12-14 09:11:12 +00:00
Henning Heinold 6ebbc07d91 site/common-uclibc: add predefined configure vars for coreutils
* this sets some configure vars which will be guessed
  false in cross-compile case for uclibc

(From OE-Core rev: c5337326005c975425b1eb2b62796e9b33f72ac3)

Signed-off-by: Henning Heinold <heinold@inf.fu-berlin.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-05 11:14:12 +01:00
Richard Purdie 4a8a3c503f Revert "site/common-uclibc: Cache gl_cv_func_wcwidth_works"
This reverts commit a471d342424502de48f28c4f8297d490f2cd1443.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-01-10 18:33:25 +00:00
Khem Raj 6f99591a6f site/common-uclibc: Cache gl_cv_func_wcwidth_works
Its not computed properly during configure and
we configure uclibc with widechar support anyway
so its fine to cache it. It fixes the errors like

| In file included from ./stdio.h:31:0,
|                  from fpurge.h:20,
|                  from fpurge.c:20:
| /home/kraj/work/angstrom/sources/openembedded-core/build/tmp-uclibc/sysroots/qemux86/usr/include/stdio.h:662:40: error: expected declaration specifiers or '...' before '(' token
| make[4]: *** [fpurge.o] Error 1

(From OE-Core rev: a471d342424502de48f28c4f8297d490f2cd1443)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-01-10 17:28:42 +00:00
Henning Heinold 81b6e546bb glib-2.0: fix qsort_t testing for uclibc
* instead of disabling the configure test and set it always true
  use the site files to set it true for glibc/eglibc and false
  for uclibc
* remove the patch
' tested only for uclibc
* bump PR

(From OE-Core rev: 812342e44e9e361a0fa93cfcfe65cf4dd6f2fb57)

Signed-off-by: Henning Heinold <heinold@inf.fu-berlin.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-18 14:22:41 +00:00
Julian Pidancet 96415387fa Give coreutils a chance to build the df utility
The coreutils configure script is unable determine how to get free
space from the Operating System when cross-compiling.
This changes caches the result of the "statfs2_bsize" test for the
coreutils configure script.
Both glibc and uclibc defines statfs as a two-argument function
and uses a struct statfs containing a f_bsize field. That's why
the fu_cv_sys_stat_statfs2_bsize variable has to be defined for
both libcs.

(From OE-Core rev: fa1eb21933a880aa20e4ca87574753b1ec272c3b)

Signed-off-by: Julian Pidancet <julian.pidancet@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-10-27 08:45:47 +01:00
Tom Rini b72e281bb7 siteinfo: Add posix_getpwuid_r posix_getgrgid_r posix_getpwnam_r to uclibc
This comes from oe.dev and while at this, drop from powerpc-linux as the
common-libc files set them.

(From OE-Core rev: 372795274267cff164ccdc9b8d44e5dc580ae5ad)

Signed-off-by: Tom Rini <tom_rini@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-04 15:04:37 +01:00
Tom Rini 2a5dab5a56 Various siteinfo files: Consolidate va_copy/__va_copy/va_val_copy
Providing va_copy / __va_copy come down to the libc.  va_val_copy
comes down to the architecture.  Unfortunately it's assumed true
if not set, so we need to make sure to set this to false for
x86_64 where it is not true.

(From OE-Core rev: a54a803ed89969c2416bfa9d911fe4cf558e2391)

Signed-off-by: Tom Rini <tom_rini@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-04 15:04:36 +01:00
Tom Rini 4ac307ec40 Various siteinfo files: Consolidate ac_cv_func_getaddrinfo
This is a libc feature, move there.  Drop the ipsec-tools specific
test as ipsec-tools (a) assumes fine on cross-compile and (b) doesn't
support buggy getaddrinfo now.

(From OE-Core rev: bca50524921a870bf774e23973a834f20701f146)

Signed-off-by: Tom Rini <tom_rini@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-04 15:04:36 +01:00
Tom Rini 4193d0e542 siteinfo: Move (getpgrp|setpgrp|setgrent|*get{pwuid,grgid}) to common-libc
These functions are determined by the C library so move them to common-glibc
and common-uclibc

(From OE-Core rev: 9226635ab28b5ca44ec04931d27c5c3313d56e61)

Signed-off-by: Tom Rini <tom_rini@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-27 12:02:44 +01:00
Tom Rini 85a49c9ed6 siteinfo: Move general realloc/malloc values to common-$libc
These are tests for glibc behavior which we have enabled in uclibc.
Note that if we ever disable MALLOC_GLIBC_COMPAT the uclibc tests
will need to be changed (but I believe this would also entail massive
patching to the rest of userspace so this should be unlikely).

(From OE-Core rev: cab512d7ee50fb55b9412c0e1a52a589de09e0a7)

Signed-off-by: Tom Rini <tom_rini@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-27 12:02:44 +01:00
Richard Purdie 1308e6ec52 site/common-uclibc: Add some extra entries
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4737 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-06-26 20:23:14 +00:00
Marcin Juszkiewicz 286da62fb5 site: sync with OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2923 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-10-19 12:05:49 +00:00
Richard Purdie 99d5d9996b site: Sync ARM changes with OE (creation of common ARM site file)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1792 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-05-27 22:46:45 +00:00