Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugins/Makefile: use files to avoid hitting ARG_MAX during build
When adding more modules to the build, ar will be passed far more .o files as arguments on the command line than the limits specified by most host kernels by default, which will cause the build to fail with "/bin/bash: Argument list too long" Using xargs can show you what these limits are on POSIX systems, e.g: $ xargs --show-limits Your environment variables take up 6774 bytes POSIX upper limit on argument length (this system): 2088330 POSIX smallest allowable upper limit on argument length (all systems): 4096 Maximum length of command we could actually use: 2081556 Size of command buffer we are actually using: 131072 Maximum parallelism (--max-procs must be no greater): 2147483647
- Loading branch information