diff options
-rw-r--r-- | mk/vars.mk | 6 | ||||
-rw-r--r-- | package/mksh/Makefile | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/mk/vars.mk b/mk/vars.mk index e804ad5e6..49eb3e7e3 100644 --- a/mk/vars.mk +++ b/mk/vars.mk @@ -111,6 +111,12 @@ TARGET_LDFLAGS+= -Wl,--secure-plt endif endif +ifeq ($(ADK_STATIC),y) +TARGET_CFLAGS+= -static +TARGET_CXXFLAGS+= -static +TARGET_LDFLAGS+= -static +endif + ifneq ($(ADK_TOOLCHAIN_GCC_USE_SSP),) TARGET_CFLAGS+= -fstack-protector TARGET_CXXFLAGS+= -fstack-protector diff --git a/package/mksh/Makefile b/package/mksh/Makefile index 4f65a97f7..76f15499e 100644 --- a/package/mksh/Makefile +++ b/package/mksh/Makefile @@ -23,11 +23,6 @@ include ${TOPDIR}/mk/package.mk $(eval $(call HOST_template,MKSH,mksh,${PKG_VERSION}-${PKG_RELEASE})) $(eval $(call PKG_template,MKSH,mksh,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR},${PKG_SECTION})) -ifeq ($(ADK_STATIC),y) -TARGET_CFLAGS+= -static -TARGET_LDFLAGS+= -static -endif - TARGET_CPPFLAGS+= -DMKSH_SMALL=1 TARGET_LDFLAGS+= -static-libgcc |