2014-02-27 12:41:37 +00:00
|
|
|
top = `{pwd}
|
|
|
|
root = ${top}/root
|
|
|
|
#arch = i486
|
|
|
|
arch = x86_64
|
|
|
|
libcroot = ${root}/opt/cross/${arch}-linux-musl/${arch}-linux-musl
|
2014-02-28 23:35:28 +00:00
|
|
|
nprocs = 4 # number of processes for building separate packages
|
|
|
|
NPROC = 4 # number of processes for mk concurrency
|
2014-02-27 12:41:37 +00:00
|
|
|
version = 0.0
|
|
|
|
mirror = http://dl.2f30.org/morpheus-pkgs/${arch}/${version}
|
|
|
|
CC = ${arch}-linux-musl-gcc
|
|
|
|
|
2014-02-28 18:14:53 +00:00
|
|
|
# these don't work for all packages yet...
|
2014-02-28 16:59:23 +00:00
|
|
|
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
|
|
|
|
|
2014-02-28 18:14:53 +00:00
|
|
|
CFLAGS = -I${libcroot}/include -static # ${optcflags}
|
|
|
|
LDFLAGS = -L${libcroot}/lib -static # ${optldflags}
|
2014-02-27 12:41:37 +00:00
|
|
|
|
2014-02-28 13:41:26 +00:00
|
|
|
PATH = ${root}/opt/cross/${arch}-linux-musl/bin:${PATH}
|