diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-09-23 21:18:02 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-09-23 21:18:02 +0200 |
commit | 2196fce0b2ee7d8188c1d34fc1d6bb6555538870 (patch) | |
tree | bd9f538c7c4d1987a432c49878b7a42d82ab65fd /mk/package.mk | |
parent | a48b869d5c241a0d630b2e19f2014ea1f357d4f6 (diff) |
add static application build
barely tested, but working for mksh package and google g1 target
Diffstat (limited to 'mk/package.mk')
-rw-r--r-- | mk/package.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/package.mk b/mk/package.mk index 9a4ade8eb..c28f22a7c 100644 --- a/mk/package.mk +++ b/mk/package.mk @@ -3,9 +3,15 @@ all: build-all-ipkgs +ifeq ($(ADK_STATIC),y) +TCFLAGS:= ${TARGET_CFLAGS} -static +TCXXFLAGS:= ${TARGET_CFLAGS} -static +TCPPFLAGS:= ${TARGET_CPPFLAGS} -static +else TCFLAGS:= ${TARGET_CFLAGS} TCXXFLAGS:= ${TARGET_CFLAGS} TCPPFLAGS:= ${TARGET_CPPFLAGS} +endif ifeq ($(ADK_DEBUG),) TCPPFLAGS+= -DNDEBUG endif @@ -176,7 +182,7 @@ endif @mkdir -p $${PACKAGE_DIR} '$${STAGING_PARENT}/pkg' \ '$${STAGING_DIR}/scripts' ifeq (,$(filter noremove,$(7))) - if test -s '$${STAGING_PARENT}/pkg/$(1)'; then \ + @if test -s '$${STAGING_PARENT}/pkg/$(1)'; then \ cd '$${STAGING_DIR}'; \ while read fn; do \ rm -f "$$$$fn"; \ |