7b026f0355
This target covers MIPS devices that run the trunk version of OpenWRT. The x86_64-unknown-linux-musl target always links statically to C libraries. For the mips(el)-unknown-linux-musl target, we opt for dynamic linking (like most of other targets do) to keep binary size down. As for the C compiler flags used in the build system, we use the same flags used for the mips(el)-unknown-linux-gnu target.
25 lines
1.3 KiB
Makefile
25 lines
1.3 KiB
Makefile
# mipsel-unknown-linux-musl configuration
|
|
CC_mipsel-unknown-linux-musl=mipsel-openwrt-linux-gcc
|
|
CXX_mipsel-unknown-linux-musl=mipsel-openwrt-linux-g++
|
|
CPP_mipsel-unknown-linux-musl=mipsel-openwrt-linux-gcc
|
|
AR_mipsel-unknown-linux-musl=mipsel-openwrt-linux-ar
|
|
CFG_LIB_NAME_mipsel-unknown-linux-musl=lib$(1).so
|
|
CFG_STATIC_LIB_NAME_mipsel-unknown-linux-musl=lib$(1).a
|
|
CFG_LIB_GLOB_mipsel-unknown-linux-musl=lib$(1)-*.so
|
|
CFG_LIB_DSYM_GLOB_mipsel-unknown-linux-musl=lib$(1)-*.dylib.dSYM
|
|
CFG_JEMALLOC_CFLAGS_mipsel-unknown-linux-musl := -mips32 -mabi=32 $(CFLAGS)
|
|
CFG_GCCISH_CFLAGS_mipsel-unknown-linux-musl := -Wall -g -fPIC -mips32 -mabi=32 $(CFLAGS)
|
|
CFG_GCCISH_CXXFLAGS_mipsel-unknown-linux-musl := -fno-rtti $(CXXFLAGS)
|
|
CFG_GCCISH_LINK_FLAGS_mipsel-unknown-linux-musl := -shared -fPIC -g -mips32
|
|
CFG_GCCISH_DEF_FLAG_mipsel-unknown-linux-musl := -Wl,--export-dynamic,--dynamic-list=
|
|
CFG_LLC_FLAGS_mipsel-unknown-linux-musl :=
|
|
CFG_INSTALL_NAME_mipsel-unknown-linux-musl =
|
|
CFG_EXE_SUFFIX_mipsel-unknown-linux-musl :=
|
|
CFG_WINDOWSY_mipsel-unknown-linux-musl :=
|
|
CFG_UNIXY_mipsel-unknown-linux-musl := 1
|
|
CFG_LDPATH_mipsel-unknown-linux-musl :=
|
|
CFG_RUN_mipsel-unknown-linux-musl=
|
|
CFG_RUN_TARG_mipsel-unknown-linux-musl=
|
|
RUSTC_FLAGS_mipsel-unknown-linux-musl := -C target-cpu=mips32 -C target-feature="+mips32"
|
|
CFG_GNU_TRIPLE_mipsel-unknown-linux-musl := mipsel-unknown-linux-musl
|