3 Patch was backported from Apache httpd:
4 http://svn.apache.org/viewvc?view=revision&revision=1327907
5 http://svn.apache.org/viewvc?view=revision&revision=1328390
6 http://svn.apache.org/viewvc?view=revision&revision=1328714
8 Patch submitted upstream:
9 https://issues.apache.org/bugzilla/show_bug.cgi?id=57058
11 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
13 diff -uNr apr-1.5.1.org/configure.in apr-1.5.1/configure.in
14 --- apr-1.5.1.org/configure.in 2014-01-25 16:17:29.000000000 +0100
15 +++ apr-1.5.1/configure.in 2014-10-05 11:20:40.080746760 +0200
17 echo "Configuring APR library"
18 echo "Platform: $host"
20 +dnl In case of cross compilation we set CC_FOR_BUILD to cc unless
21 +dnl we got already CC_FOR_BUILD from environment.
22 +if test "x${build_alias}" != "x${host_alias}"; then
23 + if test "x${CC_FOR_BUILD}" = "x"; then
27 +AC_SUBST(CC_FOR_BUILD)
28 +AC_SUBST(CFLAGS_FOR_BUILD)
30 dnl Some initial steps for configuration. We setup the default directory
31 dnl and which files are to be configured.
33 diff -uNr apr-1.5.1.org/Makefile.in apr-1.5.1/Makefile.in
34 --- apr-1.5.1.org/Makefile.in 2014-03-17 16:10:26.000000000 +0100
35 +++ apr-1.5.1/Makefile.in 2014-10-05 11:22:53.031070519 +0200
37 # APR (Apache Portable Runtime) library Makefile.
40 +CC_FOR_BUILD = @CC_FOR_BUILD@
41 +CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
43 # get substituted into some targets
44 APR_MAJOR_VERSION=@APR_MAJOR_VERSION@
47 OBJECTS_gen_test_char = tools/gen_test_char.lo $(LOCAL_LIBS)
48 tools/gen_test_char.lo: make_tools_dir
50 +tools/gen_test_char@EXEEXT@: tools/gen_test_char.c $(LOCAL_LIBS)
51 + $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -DCROSS_COMPILE -o $@ $<
53 tools/gen_test_char@EXEEXT@: $(OBJECTS_gen_test_char)
54 $(LINK_PROG) $(OBJECTS_gen_test_char) $(ALL_LIBS)
57 include/private/apr_escape_test_char.h: tools/gen_test_char@EXEEXT@
58 $(APR_MKDIR) include/private