-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.def.mk
39 lines (33 loc) · 1.07 KB
/
config.def.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
arch = x86_64
version = 0.0
mirror = http://dl.2f30.org/morpheus-pkgs/${arch}/${version} # TODO: Change this to a mitti mirror.
pkgdirs = $mkbuild/../ports
nprocs = 2
TOOLCHAIN_TRIPLET = ${arch}-musl-linux
CC = ${TOOLCHAIN_TRIPLET}-gcc
CXX = ${TOOLCHAIN_TRIPLET}-g++
LD = $CC
AR = ${TOOLCHAIN_TRIPLET}-ar
RANLIB = ${TOOLCHAIN_TRIPLET}-ranlib
STRIP = ${TOOLCHAIN_TRIPLET}-strip
CPP = ${TOOLCHAIN_TRIPLET}-cpp
HOST_TOOLCHAIN_TRIPLET = ${arch}-musl-linux
HOSTCC = $CC -static
# use STRIP = true instead of the above
# if you do not want stripped binaries
#STRIP = true
SHELL = /bin/sh
PREFIX =
BINDIR = ${PREFIX}/bin
LIBDIR = ${PREFIX}/lib
ETCDIR = ${PREFIX}/etc
DFLDIR = ${ETCDIR}/default
MANDIR = ${PREFIX}/share/man
INSTALL = /usr/bin/install
SUM = sha512sum
# these don't work for all packages yet...
optldflags = -s -Wl,--gc-sections -Wl,-z,relro,-z,now
optcflags = -fdata-sections -ffunction-sections -Os -g0 -fno-unwind-tables -fno-asynchronous-unwind-tables -Wa,--noexecstack
CPPFLAGS = -D_BSD_SOURCE -D_GNU_SOURCE
CFLAGS = ${CPPFLAGS} # ${optcflags}
LDFLAGS = -static ${optldflags}