I have finally got nginx statically compiled for ARMv5 platforms (version 0.7.69).
It was difficult because linking with libz statically posed some issues and also because it needs large file system support which my toolchain did not have.
One observation: nginx doesn’t want to start without /etc/passwd and /etc/group and without strace – it was easy to spot that the error is the same unless both the files are there:
[emerg]: getpwnam("nobody") failed (2: No such file or directory)
1. readelf 188.8.131.5200303 output:
[root@arc]/system/xbin# readelf -A nginx
Attribute Section: aeabi
Tag_ABI_FP_number_model: IEEE 754
2. ldd reports it as static:
[root@arc]/system/xbin# ldd nginx
not a dynamic executable
For now I can only see the error page since I did not yet configure it with PHP-CGI:
The more the merrier !