2014-03-26 21:19:02 +00:00
|
|
|
arch = i486
|
2014-02-27 12:41:37 +00:00
|
|
|
version = 0.0
|
|
|
|
mirror = http://dl.2f30.org/morpheus-pkgs/${arch}/${version}
|
2014-03-26 21:19:02 +00:00
|
|
|
|
|
|
|
TOOL_BASE = ${arch}-musl-linux-
|
|
|
|
CC = ${TOOL_BASE}gcc
|
|
|
|
LD = $CC
|
|
|
|
AR = ${TOOL_BASE}ar
|
|
|
|
RANLIB = ${TOOL_BASE}ranlib
|
|
|
|
STRIP = ${TOOL_BASE}strip
|
|
|
|
#STRIP = true
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
PREFIX =
|
|
|
|
BINDIR = ${PREFIX}/bin
|
|
|
|
LIBDIR = ${PREFIX}/lib
|
|
|
|
ETCDIR = ${PREFIX}/etc
|
|
|
|
DFLDIR = ${ETCDIR}/default
|
|
|
|
MANDIR = ${PREFIX}/share/man
|
|
|
|
|
|
|
|
INSTALL = install
|
2014-02-27 12:41:37 +00:00
|
|
|
|
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-26 21:19:02 +00:00
|
|
|
CFLAGS = ${CPPFLAGS} # ${optcflags}
|
|
|
|
LDFLAGS = -static ${optldflags}
|