xref: /aosp_15_r20/external/musl/dist/config.mak (revision c9945492fdd68bbe62686c5b452b4dc1be3f8453)
1*c9945492SAndroid Build Coastguard Worker#
2*c9945492SAndroid Build Coastguard Worker# musl config.mak template (original in dist/config.mak)
3*c9945492SAndroid Build Coastguard Worker#
4*c9945492SAndroid Build Coastguard Worker
5*c9945492SAndroid Build Coastguard Worker# Target CPU architecture. Supported values: i386, x86_64
6*c9945492SAndroid Build Coastguard WorkerARCH = i386
7*c9945492SAndroid Build Coastguard Worker
8*c9945492SAndroid Build Coastguard Worker# Installation prefix. DO NOT use /, /usr, or /usr/local !
9*c9945492SAndroid Build Coastguard Workerprefix = /usr/local/musl
10*c9945492SAndroid Build Coastguard Worker
11*c9945492SAndroid Build Coastguard Worker# Installation prefix for musl-gcc compiler wrapper.
12*c9945492SAndroid Build Coastguard Workerexec_prefix = /usr/local
13*c9945492SAndroid Build Coastguard Worker
14*c9945492SAndroid Build Coastguard Worker# Location for the dynamic linker ld-musl-$(ARCH).so.1
15*c9945492SAndroid Build Coastguard Workersyslibdir = /lib
16*c9945492SAndroid Build Coastguard Worker
17*c9945492SAndroid Build Coastguard Worker# Uncomment if you want to build i386 musl on a 64-bit host
18*c9945492SAndroid Build Coastguard Worker#CFLAGS += -m32
19*c9945492SAndroid Build Coastguard Worker
20*c9945492SAndroid Build Coastguard Worker# Uncomment to fix broken distro-patched toolchains where hash-style=gnu(only)
21*c9945492SAndroid Build Coastguard Worker#LDFLAGS += -Wl,--hash-style,both
22*c9945492SAndroid Build Coastguard Worker
23*c9945492SAndroid Build Coastguard Worker# Uncomment to fix broken distro-patched toolchains where stack-protector=on
24*c9945492SAndroid Build Coastguard Worker#CFLAGS += -fno-stack-protector
25*c9945492SAndroid Build Coastguard Worker
26*c9945492SAndroid Build Coastguard Worker# Uncomment for smaller code size.
27*c9945492SAndroid Build Coastguard Worker#CFLAGS += -fomit-frame-pointer -mno-accumulate-outgoing-args
28*c9945492SAndroid Build Coastguard Worker
29*c9945492SAndroid Build Coastguard Worker# Uncomment to omit massive GCC4 DWARF2 bloat (only useful for debugging)
30*c9945492SAndroid Build Coastguard Worker#CFLAGS += -fno-asynchronous-unwind-tables
31*c9945492SAndroid Build Coastguard Worker
32*c9945492SAndroid Build Coastguard Worker# Uncomment for warnings (as errors). Might need tuning to your gcc version.
33*c9945492SAndroid Build Coastguard Worker#CFLAGS += -Werror -Wall -Wpointer-arith -Wcast-align -Wno-parentheses -Wno-char-subscripts -Wno-uninitialized -Wno-sequence-point -Wno-missing-braces -Wno-unused-value -Wno-overflow -Wno-int-to-pointer-cast
34*c9945492SAndroid Build Coastguard Worker
35*c9945492SAndroid Build Coastguard Worker# Uncomment if you want to disable building the shared library.
36*c9945492SAndroid Build Coastguard Worker#SHARED_LIBS =
37