2014-02-27 12:41:37 +00:00
|
|
|
#arch = i486
|
|
|
|
arch = x86_64
|
2014-03-10 13:47:50 +00:00
|
|
|
root = ${top}/root
|
2014-02-28 23:35:28 +00:00
|
|
|
nprocs = 4 # number of processes for building separate packages
|
2014-03-04 11:54:28 +00:00
|
|
|
NPROC = 4 # number of processes for mk concurrency
|
2014-03-10 13:47:50 +00:00
|
|
|
|
|
|
|
libcroot = ${root}/opt/cross/${arch}-linux-musl/${arch}-linux-musl
|
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-03-05 13:34:16 +00:00
|
|
|
CPPFLAGS = -D_BSD_SOURCE -D_GNU_SOURCE
|
2014-03-05 14:13:22 +00:00
|
|
|
CFLAGS = -I${libcroot}/include ${CPPFLAGS} # ${optcflags}
|
2014-03-05 17:05:30 +00:00
|
|
|
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}
|