add config.mak.dist example for static-linked cross toolchain
This commit is contained in:
parent
dd00bd7925
commit
5df79ffdbf
|
@ -36,6 +36,14 @@
|
||||||
# MPC_VER =
|
# MPC_VER =
|
||||||
# MPFR_VER =
|
# MPFR_VER =
|
||||||
|
|
||||||
|
# Something like the following can be used to produce a static-linked
|
||||||
|
# toolchain that's deployable to any system with matching arch, using
|
||||||
|
# an existing musl-targeted cross compiler. This only # works if the
|
||||||
|
# system you build on can natively (or via binfmt_misc and # qemu) run
|
||||||
|
# binaries produced by the existing toolchain (in this example, i486).
|
||||||
|
|
||||||
|
# COMMON_CONFIG += CC="i486-linux-musl-gcc -static --static" CXX="i486-linux-musl-g++ -static --static"
|
||||||
|
|
||||||
# Recommended options for smaller build for deploying binaries:
|
# Recommended options for smaller build for deploying binaries:
|
||||||
|
|
||||||
# COMMON_CONFIG += CFLAGS="-g0 -Os" CXXFLAGS="-g0 -Os" LDFLAGS="-s"
|
# COMMON_CONFIG += CFLAGS="-g0 -Os" CXXFLAGS="-g0 -Os" LDFLAGS="-s"
|
||||||
|
|
Loading…
Reference in New Issue