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:
[root@arc]/usr/local/nginx/conf# nginx [emerg]: getpwnam("nobody") failed (2: No such file or directory)
1. readelf 184.108.40.20600303 output:
[root@arc]/system/xbin# readelf -A nginx Attribute Section: aeabi File Attributes Tag_CPU_name: "XSCALE" Tag_CPU_arch: v5TE Tag_ARM_ISA_use: Yes Tag_THUMB_ISA_use: Thumb-1 Tag_ABI_PCS_wchar_t: 4 Tag_ABI_FP_denormal: Needed Tag_ABI_FP_exceptions: Needed Tag_ABI_FP_number_model: IEEE 754 Tag_ABI_align8_needed: Yes Tag_ABI_enum_size: int
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 !