>$ cat conf-cc
>/opt/bin/musl-gcc -static -Os -march=x86-64 -fomit-frame-pointer -pipe
>-Wall -Wno-trampolines -Wno-maybe-uninitialized -Werror=overflow
>-mpreferred-stack-boundary=4 -falign-functions=1 -falign-jumps=1
>-falign-loops=1 -fno-unwind-tables -fdata-sections -ffunction-sections
>-Wl,--gc-sections -fno-asynchronous-unwind-tables -fstrict-aliasing
>-Wstrict-aliasing=2 -Wno-unused-function -foptimize-sibling-calls
>-std=c89 -fno-pic -Wl,-z,noseparate-code -fPIE
>
>$ cat conf-ld
>/opt/bin/musl-gcc -s
That's off-topic indeed, but the answer is easy: -static is a linking
option, not a compilation option. Put -static in your conf-ld, not in
your conf-cc. :)
--
Laurent
Received on Sat Aug 19 2023 - 16:40:32 CEST