summaryrefslogtreecommitdiff
path: root/package/mksh/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/mksh/Makefile')
-rw-r--r--package/mksh/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/mksh/Makefile b/package/mksh/Makefile
index c40d9d807..a38b97733 100644
--- a/package/mksh/Makefile
+++ b/package/mksh/Makefile
@@ -21,6 +21,11 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,MKSH,mksh,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+ifeq ($(ADK_STATIC),y)
+TARGET_CFLAGS+= -static
+TARGET_LDFLAGS+= -static
+endif
+
TARGET_CPPFLAGS+= -DMKSH_SMALL=1
CONFIG_STYLE:= manual
BUILD_STYLE:= manual