How to make apache for ARM processor.

I needed to make apache with some configurations by myself, but I couldn’t find how to make it for ARM processor… So I needed to search for the way by myself, and found it. Then I’ll share that.

How to do that?

Very simple. Replace some lines with using qemu-arm-static on makefiles for apr and apache like the following sample.

If you have a trouble of making apache for ARM, try this approach.

makefile sample

What’s this approach?

Apache has some tools which should be run on host machine (x86) if cross-compiling, so the make rule of tools for host machine (x86) needs to be separated from lib/binary for target (ARM).

On the other hand, my approach is very simple. All of the related files for apache is built for ARM, and some of tools which should be run on x86 are run with qemu.

So you need to modify just a line on makefile for both apache and apr to use qemu-arm-static.

zlib for ARM

under writing..

expat for ARM

under writing..

pcre for ARM

under writing..

SSL library for ARM

under writing..

fix pthread related errors

I encountered some errors related to pthread. These errors didn’t raised when making for x86…

You can fix it by adding -pthread to PROGRAM_DEPENDENCIES on apache makefile like following.



  • このエントリーをはてなブックマークに追加