|
| 1 | +# |
| 2 | +# config.mak.dist - sample musl-cross-make configuration |
| 3 | +# |
| 4 | +# Copy to config.mak and edit as desired. |
| 5 | +# |
| 6 | + |
| 7 | +# There is no default TARGET; you must select one here or on the make |
| 8 | +# command line. Some examples: |
| 9 | + |
| 10 | +# TARGET = i486-linux-musl |
| 11 | +# TARGET = x86_64-linux-musl |
| 12 | +# TARGET = arm-linux-musleabi |
| 13 | +# TARGET = arm-linux-musleabihf |
| 14 | +# TARGET = sh2eb-linux-muslfdpic |
| 15 | +# ... |
| 16 | + |
| 17 | +# By default, cross compilers are installed to ./output under the top-level |
| 18 | +# musl-cross-make directory and can later be moved wherever you want them. |
| 19 | +# To install directly to a specific location, set it here. Multiple targets |
| 20 | +# can safely be installed in the same location. Some examples: |
| 21 | + |
| 22 | +# OUTPUT = /opt/cross |
| 23 | +OUTPUT = /usr/local |
| 24 | + |
| 25 | +# By default, latest supported release versions of musl and the toolchain |
| 26 | +# components are used. You can override those here, but the version selected |
| 27 | +# must be supported (under hashes/ and patches/) to work. For musl, you |
| 28 | +# can use "git-refname" (e.g. git-master) instead of a release. Setting a |
| 29 | +# blank version for gmp, mpc, mpfr and isl will suppress download and |
| 30 | +# in-tree build of these libraries and instead depend on pre-installed |
| 31 | +# libraries when available (isl is optional and not set by default). |
| 32 | +# Setting a blank version for linux will suppress installation of kernel |
| 33 | +# headers, which are not needed unless compiling programs that use them. |
| 34 | + |
| 35 | +# BINUTILS_VER = 2.25.1 |
| 36 | +# GCC_VER = 5.2.0 |
| 37 | +# MUSL_VER = git-master |
| 38 | +# GMP_VER = |
| 39 | +# MPC_VER = |
| 40 | +# MPFR_VER = |
| 41 | +# ISL_VER = |
| 42 | +# LINUX_VER = |
| 43 | + |
| 44 | +# By default source archives are downloaded with wget. curl is also an option. |
| 45 | + |
| 46 | +# DL_CMD = wget -c -O |
| 47 | +# DL_CMD = curl -C - -L -o |
| 48 | + |
| 49 | +# Check sha-1 hashes of downloaded source archives. On gnu systems this is |
| 50 | +# usually done with sha1sum. |
| 51 | + |
| 52 | +# SHA1_CMD = sha1sum -c |
| 53 | +# SHA1_CMD = sha1 -c |
| 54 | +# SHA1_CMD = shasum -a 1 -c |
| 55 | + |
| 56 | +# Something like the following can be used to produce a static-linked |
| 57 | +# toolchain that's deployable to any system with matching arch, using |
| 58 | +# an existing musl-targeted cross compiler. This only works if the |
| 59 | +# system you build on can natively (or via binfmt_misc and qemu) run |
| 60 | +# binaries produced by the existing toolchain (in this example, i486). |
| 61 | + |
| 62 | +# COMMON_CONFIG += CC="i486-linux-musl-gcc -static --static" CXX="i486-linux-musl-g++ -static --static" |
| 63 | + |
| 64 | +# Recommended options for smaller build for deploying binaries: |
| 65 | + |
| 66 | +# COMMON_CONFIG += CFLAGS="-g0 -Os" CXXFLAGS="-g0 -Os" LDFLAGS="-s" |
| 67 | + |
| 68 | +# Options you can add for faster/simpler build at the expense of features: |
| 69 | + |
| 70 | +COMMON_CONFIG += --disable-nls |
| 71 | +# GCC_CONFIG += --disable-libquadmath --disable-decimal-float |
| 72 | +# GCC_CONFIG += --disable-libitm |
| 73 | +# GCC_CONFIG += --disable-fixed-point |
| 74 | +# GCC_CONFIG += --disable-lto |
| 75 | + |
| 76 | +# By default C and C++ are the only languages enabled, and these are |
| 77 | +# the only ones tested and known to be supported. You can uncomment the |
| 78 | +# following and add other languages if you want to try getting them to |
| 79 | +# work too. |
| 80 | + |
| 81 | +# GCC_CONFIG += --enable-languages=c,c++ |
| 82 | + |
| 83 | +# You can keep the local build path out of your toolchain binaries and |
| 84 | +# target libraries with the following, but then gdb needs to be told |
| 85 | +# where to look for source files. |
| 86 | + |
| 87 | +# COMMON_CONFIG += --with-debug-prefix-map=$(CURDIR)= |
0 commit comments