blob: 1fc43695d3c6dd7a1a8acdf39881eaf2b7319d0f [file] [log] [blame]
Rich Felker0b44a032011-02-12 00:22:29 -05001#
2# musl config.mak template (original in dist/config.mak)
3#
4
Rich Felker6d333352011-02-17 18:30:41 -05005# Target CPU architecture. Supported values: i386, x86_64
Rich Felker0b44a032011-02-12 00:22:29 -05006ARCH = i386
7
8# Installation prefix. DO NOT use /, /usr, or /usr/local !
9prefix = /usr/local/musl
10
11# Installation prefix for musl-gcc compiler wrapper.
12exec_prefix = /usr/local
13
Rich Felker207c45d2011-06-27 21:38:11 -040014# Location for the dynamic linker ld-musl-$(ARCH).so.1
15syslibdir = /lib
16
Rich Felker0b44a032011-02-12 00:22:29 -050017# Uncomment if you want to build i386 musl on a 64-bit host
18#CFLAGS += -m32
19
Rich Felker5595de62012-04-11 20:25:42 -040020# Uncomment to fix broken distro-patched toolchains where hash-style=gnu(only)
21#LDFLAGS += -Wl,--hash-style,both
22
23# Uncomment to fix broken distro-patched toolchains where stack-protector=on
24#CFLAGS += -fno-stack-protector
25
Rich Felker0b44a032011-02-12 00:22:29 -050026# Uncomment for smaller code size.
27#CFLAGS += -fomit-frame-pointer -mno-accumulate-outgoing-args
28
Rich Felkere4d35ea2012-04-24 16:49:11 -040029# Uncomment to omit massive GCC4 DWARF2 bloat (only useful for debugging)
30#CFLAGS += -fno-asynchronous-unwind-tables
31
Rich Felker0b44a032011-02-12 00:22:29 -050032# Uncomment for warnings (as errors). Might need tuning to your gcc version.
Rich Felker99b8a252011-05-07 23:23:58 -040033#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
Rich Felker0b44a032011-02-12 00:22:29 -050034
Rich Felkerec05a0b2011-06-23 22:13:47 -040035# Uncomment if you want to disable building the shared library.
Rich Felker207c45d2011-06-27 21:38:11 -040036#SHARED_LIBS =