apr icon indicating copy to clipboard operation
apr copied to clipboard

Apr: support cross compiling

Open jiahongxujia opened this issue 7 years ago • 4 comments

jiahongxujia avatar Feb 02 '18 08:02 jiahongxujia

Thank you for your submission, applied in svn r1839627/r1839628 to trunk and 1.7. Passing this on to [email protected] for discussion of applying to 1.6 branch.

wrowe avatar Aug 30 '18 03:08 wrowe

Note discussion on [email protected]. Because this introduces a new dependency for maintainers using buildconf to obtain autoconf-archive, the group may choose to reject the proposal and revert. To be determined.

wrowe avatar Aug 30 '18 05:08 wrowe

My results;

make[1]: Entering directory '/home/wrowe/dev/build/apr2-ossl110' /home/wrowe/dev/apr-2.0/build/mkdir.sh tools ../../apr-2.0/tools/gen_test_char.c -o tools/gen_test_char make[1]: execvp: ../../apr-2.0/tools/gen_test_char.c: Permission denied

This is from a vpath build.

The resulting Makefile is; tools/gen_test_char: tools/gen_test_char.c $(APR_MKDIR) tools $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $< -o $@

include/private/apr_escape_test_char.h: tools/gen_test_char $(APR_MKDIR) include/private tools/gen_test_char > $@

So... $(CC_FOR_BUILD) appears to be garbage/empty, cannot find it after recursively searching the buildpath tree following buildconf+configure.

wrowe avatar Aug 30 '18 21:08 wrowe

AX_PROG_CC_FOR_BUILD was missing from the path, added in r1871998.

minfrin avatar Dec 26 '19 11:12 minfrin