Makerules: fix out-of-tree build error "Argument list too long"
commit66c855560d4b79547861de48f04dff90387f918e
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 24 Apr 2024 11:51:28 +0000 (24 04:51 -0700)
committerWaldemar Brodkorb <wbx@openadk.org>
Wed, 24 Apr 2024 16:13:43 +0000 (24 18:13 +0200)
tree3b21c86053bcbf64ba8274169fe54916da2096c3
parent1614cebc9e36580a90ad27295640a757af5d6dff
Makerules: fix out-of-tree build error "Argument list too long"

Make rule that announces and makes static libc archive can generate
command line that is too long when a full path O= option is used. That
breaks the build with the following message:

  make: /bin/sh: Argument list too long

Use make $(file) construct to generate file list file and use that file
as $(AR) argument instead.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Makerules