Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1 | # |
| 2 | # musl config.mak template (original in dist/config.mak) |
| 3 | # |
| 4 | |
Rich Felker | 6d33335 | 2011-02-17 18:30:41 -0500 | [diff] [blame] | 5 | # Target CPU architecture. Supported values: i386, x86_64 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 6 | ARCH = i386 |
| 7 | |
| 8 | # Installation prefix. DO NOT use /, /usr, or /usr/local ! |
| 9 | prefix = /usr/local/musl |
| 10 | |
| 11 | # Installation prefix for musl-gcc compiler wrapper. |
| 12 | exec_prefix = /usr/local |
| 13 | |
Rich Felker | 207c45d | 2011-06-27 21:38:11 -0400 | [diff] [blame] | 14 | # Location for the dynamic linker ld-musl-$(ARCH).so.1 |
| 15 | syslibdir = /lib |
| 16 | |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 17 | # Uncomment if you want to build i386 musl on a 64-bit host |
| 18 | #CFLAGS += -m32 |
| 19 | |
Rich Felker | 5595de6 | 2012-04-11 20:25:42 -0400 | [diff] [blame] | 20 | # 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 Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 26 | # Uncomment for smaller code size. |
| 27 | #CFLAGS += -fomit-frame-pointer -mno-accumulate-outgoing-args |
| 28 | |
Rich Felker | e4d35ea | 2012-04-24 16:49:11 -0400 | [diff] [blame] | 29 | # Uncomment to omit massive GCC4 DWARF2 bloat (only useful for debugging) |
| 30 | #CFLAGS += -fno-asynchronous-unwind-tables |
| 31 | |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 32 | # Uncomment for warnings (as errors). Might need tuning to your gcc version. |
Rich Felker | 99b8a25 | 2011-05-07 23:23:58 -0400 | [diff] [blame] | 33 | #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 Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 34 | |
Rich Felker | ec05a0b | 2011-06-23 22:13:47 -0400 | [diff] [blame] | 35 | # Uncomment if you want to disable building the shared library. |
Rich Felker | 207c45d | 2011-06-27 21:38:11 -0400 | [diff] [blame] | 36 | #SHARED_LIBS = |