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
|
|
|
|
# can use "git-refname" (e.g. git-master) instead of a release.
|
|
|
|
|
|
|
|
# BINUTILS_VER = 2.25.1
|
|
|
|
# GCC_VER = 5.2.0
|
|
|
|
# MUSL_VER = git-master
|
|
|
|
|
|
|
|
# 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-09-13 06:17:08 +02:00
|
|
|
# COMMON_CONFIG += MAKEINFO=/bin/false
|
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-01 07:36:28 +02:00
|
|
|
# The following are options needed to make certain targets work right.
|
|
|
|
# They may be moved to main build logic rather than config.mak at some
|
|
|
|
# point in the future.
|
2015-11-06 00:37:39 +01:00
|
|
|
|
2016-05-01 07:36:28 +02:00
|
|
|
ifeq ($(TARGET),sh2eb-linux-muslfdpic)
|
|
|
|
GCC_CONFIG += --with-cpu=mj2
|
|
|
|
GCC_CONFIG += --enable-fdpic
|
|
|
|
endif
|
2015-11-06 07:44:16 +01:00
|
|
|
|
2016-05-01 07:36:28 +02:00
|
|
|
ifeq ($(TARGET),mips64-linux-musl)
|
|
|
|
GCC_CONFIG += --with-abi=64
|
|
|
|
endif
|
2015-11-06 07:44:16 +01:00
|
|
|
|
2016-05-01 07:36:28 +02:00
|
|
|
ifeq ($(TARGET),arm-linux-musleabihf)
|
|
|
|
GCC_CONFIG += --with-float=hard
|
|
|
|
endif
|