From 5101b72fac2c9a6971a0c7d2fe6bbd318e9678ab Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 7 Mar 2014 10:55:50 +0100 Subject: use mksh in tools, too --- tools/mksh/Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tools/mksh/Makefile (limited to 'tools/mksh') diff --git a/tools/mksh/Makefile b/tools/mksh/Makefile new file mode 100644 index 000000000..8cb7c29b7 --- /dev/null +++ b/tools/mksh/Makefile @@ -0,0 +1,30 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= mksh +PKG_VERSION:= 49 +PKG_RELEASE:= 1 +PKG_MD5SUM:= e8c205cac72c3dc8540bbc3897421422 +PKG_SITES:= ${MASTER_SITE_MIRBSD:distfiles/=dist/mir/mksh/} + +DISTFILES= ${PKG_NAME}-R${PKG_VERSION}.tgz +WRKDIST= ${WRKDIR}/${PKG_NAME} + +include ../rules.mk + +install: ${STAGING_HOST_DIR}/usr/bin/mksh + +$(WRKBUILD)/.compiled: ${WRKDIST}/.prepared + cd ${WRKBUILD} && CC='${TARGET_CC}' CFLAGS='${TARGET_CFLAGS}' \ + CPPFLAGS='${TARGET_CPPFLAGS}' LDFLAGS='${TARGET_LDFLAGS}' \ + HAVE_CAN_FSTACKPROTECTORALL=0 \ + TARGET_OS=Linux ${BASH} ${WRKSRC}/Build.sh -Q -r -c lto + touch $@ + +${STAGING_HOST_DIR}/usr/bin/mksh: $(WRKBUILD)/.compiled + ${INSTALL_BIN} ${WRKBUILD}/mksh \ + ${STAGING_HOST_DIR}/usr/bin + +include $(TOPDIR)/mk/tools.mk -- cgit v1.2.3 From bccb7e471926219a01e6ce673d31009d5711fa53 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 7 Mar 2014 16:01:09 +0100 Subject: oops, wrong cflags --- tools/mksh/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/mksh') diff --git a/tools/mksh/Makefile b/tools/mksh/Makefile index 8cb7c29b7..a6ee57906 100644 --- a/tools/mksh/Makefile +++ b/tools/mksh/Makefile @@ -17,8 +17,8 @@ include ../rules.mk install: ${STAGING_HOST_DIR}/usr/bin/mksh $(WRKBUILD)/.compiled: ${WRKDIST}/.prepared - cd ${WRKBUILD} && CC='${TARGET_CC}' CFLAGS='${TARGET_CFLAGS}' \ - CPPFLAGS='${TARGET_CPPFLAGS}' LDFLAGS='${TARGET_LDFLAGS}' \ + cd ${WRKBUILD} && CC='${CC_FOR_BUILD}' CFLAGS='${CFLAGS_FOR_BUILD}' \ + CPPFLAGS='${CPPFLAGS_FOR_BUILD}' LDFLAGS='${LDFLAGS_FOR_BUILD}' \ HAVE_CAN_FSTACKPROTECTORALL=0 \ TARGET_OS=Linux ${BASH} ${WRKSRC}/Build.sh -Q -r -c lto touch $@ -- cgit v1.2.3 From f9b55307b0669be2f726548a1a1de299ac2fca28 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 8 Mar 2014 17:11:37 +0100 Subject: mksh does not require special LDFLAGS/CPPFLAGS --- tools/mksh/Makefile | 1 - 1 file changed, 1 deletion(-) (limited to 'tools/mksh') diff --git a/tools/mksh/Makefile b/tools/mksh/Makefile index a6ee57906..2c912e52b 100644 --- a/tools/mksh/Makefile +++ b/tools/mksh/Makefile @@ -18,7 +18,6 @@ install: ${STAGING_HOST_DIR}/usr/bin/mksh $(WRKBUILD)/.compiled: ${WRKDIST}/.prepared cd ${WRKBUILD} && CC='${CC_FOR_BUILD}' CFLAGS='${CFLAGS_FOR_BUILD}' \ - CPPFLAGS='${CPPFLAGS_FOR_BUILD}' LDFLAGS='${LDFLAGS_FOR_BUILD}' \ HAVE_CAN_FSTACKPROTECTORALL=0 \ TARGET_OS=Linux ${BASH} ${WRKSRC}/Build.sh -Q -r -c lto touch $@ -- cgit v1.2.3