Commit 6c8489f
committed
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): 21474836471 parent e4abb1c commit 6c8489f
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1438 | 1438 | | |
1439 | 1439 | | |
1440 | 1440 | | |
| 1441 | + | |
1441 | 1442 | | |
1442 | 1443 | | |
1443 | 1444 | | |
| |||
2060 | 2061 | | |
2061 | 2062 | | |
2062 | 2063 | | |
2063 | | - | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
2064 | 2069 | | |
2065 | 2070 | | |
2066 | 2071 | | |
2067 | 2072 | | |
2068 | | - | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
2069 | 2076 | | |
2070 | 2077 | | |
2071 | 2078 | | |
| |||
0 commit comments