2016-05-01 07:36:28 +02:00
|
|
|
#
|
|
|
|
# config.mak.dist - sample musl-cross-make configuration
|
|
|
|
#
|
|
|
|
# Copy to config.mak and edit as desired.
|
|
|
|
#
|
2015-08-25 21:32:46 +02:00
|
|
|
|
2016-05-01 07:36:28 +02:00
|
|
|
# There is no default TARGET; you must select one here or on the make
|
|
|
|
# command line. Some examples:
|
2015-11-18 23:50:22 +01:00
|
|
|
|
2016-05-01 07:36:28 +02:00
|
|
|
# TARGET = i486-linux-musl
|
|
|
|
# TARGET = x86_64-linux-musl
|
|
|
|
# TARGET = arm-linux-musleabi
|
|
|
|
# TARGET = arm-linux-musleabihf
|
|
|
|
# TARGET = sh2eb-linux-muslfdpic
|
|
|
|
# ...
|
2015-08-25 21:32:46 +02:00
|
|
|
|
2016-05-01 07:36:28 +02:00
|
|
|
# By default, cross compilers are installed to ./output under the top-level
|
|
|
|
# musl-cross-make directory and can later be moved wherever you want them.
|
|
|
|
# To install directly to a specific location, set it here. Multiple targets
|
|
|
|
# can safely be installed in the same location. Some examples:
|
|
|
|
|
|
|
|
# OUTPUT = /opt/cross
|
|
|
|
# OUTPUT = /usr/local
|
|
|
|
|
|
|
|
# By default, latest supported release versions of musl and the toolchain
|
|
|
|
# components are used. You can override those here, but the version selected
|
|
|
|
# must be supported (under hashes/ and patches/) to work. For musl, you
|
2016-05-02 21:21:46 +02:00
|
|
|
# can use "git-refname" (e.g. git-master) instead of a release. Setting a
|
2016-05-22 13:27:05 +02:00
|
|
|
# blank version for gmp, mpc, mpfr and isl will suppress download and
|
|
|
|
# in-tree build of these libraries and instead depend on pre-installed
|
|
|
|
# libraries when available (isl is optional and not set by default).
|
2016-05-14 07:39:05 +02:00
|
|
|
# Setting a blank version for linux will suppress installation of kernel
|
|
|
|
# headers, which are not needed unless compiling programs that use them.
|
2016-05-01 07:36:28 +02:00
|
|
|
|
|
|
|
# BINUTILS_VER = 2.25.1
|
|
|
|
# GCC_VER = 5.2.0
|
|
|
|
# MUSL_VER = git-master
|
2016-05-02 21:21:46 +02:00
|
|
|
# GMP_VER =
|
|
|
|
# MPC_VER =
|
|
|
|
# MPFR_VER =
|
2016-05-22 13:27:05 +02:00
|
|
|
# ISL_VER =
|
2016-05-14 07:39:05 +02:00
|
|
|
# LINUX_VER =
|
2016-05-01 07:36:28 +02:00
|
|
|
|
2016-12-03 08:58:08 +01:00
|
|
|
# By default source archives are downloaded with wget. curl is also an option.
|
|
|
|
|
|
|
|
# HTTP_GET = wget -c -O $(2) $(1)
|
|
|
|
# HTTP_GET = curl -C - -L -o $(2) $(1)
|
|
|
|
|
2016-05-02 21:43:47 +02:00
|
|
|
# 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"
|
|
|
|
|
2016-05-02 21:24:49 +02:00
|
|
|
# Recommended options for smaller build for deploying binaries:
|
|
|
|
|
|
|
|
# COMMON_CONFIG += CFLAGS="-g0 -Os" CXXFLAGS="-g0 -Os" LDFLAGS="-s"
|
|
|
|
|
2016-05-01 07:36:28 +02:00
|
|
|
# Recommended options for faster/simpler build:
|
2015-09-13 06:17:08 +02:00
|
|
|
|
2015-08-25 21:32:46 +02:00
|
|
|
# COMMON_CONFIG += --disable-nls
|
2015-11-10 01:05:12 +01:00
|
|
|
# GCC_CONFIG += --enable-languages=c,c++
|
2015-11-10 01:02:34 +01:00
|
|
|
# GCC_CONFIG += --disable-libquadmath --disable-decimal-float
|
2015-08-25 21:32:46 +02:00
|
|
|
# GCC_CONFIG += --disable-multilib
|
2015-09-13 06:17:08 +02:00
|
|
|
|
2016-05-04 05:37:56 +02:00
|
|
|
# You can keep the local build path out of your toolchain binaries and
|
|
|
|
# target libraries with the following, but then gdb needs to be told
|
|
|
|
# where to look for source files.
|
|
|
|
|
2016-12-02 08:14:01 +01:00
|
|
|
# COMMON_CONFIG += --with-debug-prefix-map=$(CURDIR)=
|