aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/apr/apr_1.5.2.bb
diff options
context:
space:
mode:
authorDengke Du <dengke.du@windriver.com>2016-12-14 18:56:43 +0800
committerDengke Du <dengke.du@windriver.com>2016-12-20 13:34:53 +0800
commit47053394f7baedc5e343fc82bb144d6d7abae7e8 (patch)
tree72f0ef4ddd9b9a28764dc909e5842179df438ff2 /meta/recipes-support/apr/apr_1.5.2.bb
parent98f01bc4f3b2acec91130e78467d044664771e1c (diff)
downloadopenembedded-core-contrib-dengke/fix-apr-configure-error-for-cross-compiling.tar.gz
apr: fix off_t size can't match when configure and in target glibcdengke/fix-apr-configure-error-for-cross-compiling
When subversion run on x86 and lib32 on x86-64, it use the APR's apr.h header file. But when configure the APR, APR meets the cross compiling, it was hardcoded in configure.in in apr source code. As the following: APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h>], off_t, 8) It pass 8 bytes to off_t when meets cross compiling, but on x86 or lib32 the off_t in glibc was 4 bytes, so it let the application who use apr.h go to wrong. Such as subversion: svnadmin create test So we should let the APR detect the correct off_t when cross compiling, change it to the following: AC_CHECK_SIZEOF(off_t) The same for the following hardcoded types for cross compiling: pid_t 8 size_t 8 ssize_t 8 Change the above correspondingly. Signed-off-by: Dengke Du <dengke.du@windriver.com>
Diffstat (limited to 'meta/recipes-support/apr/apr_1.5.2.bb')
-rw-r--r--meta/recipes-support/apr/apr_1.5.2.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-support/apr/apr_1.5.2.bb b/meta/recipes-support/apr/apr_1.5.2.bb
index 302c93504b..f560c8b9c4 100644
--- a/meta/recipes-support/apr/apr_1.5.2.bb
+++ b/meta/recipes-support/apr/apr_1.5.2.bb
@@ -17,6 +17,7 @@ SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.bz2 \
file://upgrade-and-fix-1.5.1.patch \
file://Fix-packet-discards-HTTP-redirect.patch \
file://configure.in-fix-LTFLAGS-to-make-it-work-with-ccache.patch \
+ file://0001-apr-fix-off_t-size-doesn-t-match-in-glibc-when-cross.patch \
"
SRC_URI[md5sum] = "4e9769f3349fe11fc0a5e1b224c236aa"