Permalink
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (24 sloc) 852 Bytes
[mirrors]
http://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R56c.tgz
[vars]
filesize=417218
sha512=7e4cd2d24c6bca2ebad7c6b02d158188e766bd4693d93f5bed198d69238aef078d42ce911431ad4e419e4af55083047d823bfad53973db5c6d8a685482770135
pkgver=5
tardir=mksh
[deps]
[build]
CFLAGS='-Os -ftree-dce -fdata-sections -ffunction-sections -Wl,--gc-sections' LDSTATIC=-static LDFLAGS="-Wl,--gc-sections" \
sh Build.sh -r -M
make -j$MAKE_THREADS -f - all <<'EOF'
include Makefrag.inc
VPATH= .
all: $(PROG)
$(PROG): $(OBJS_BP)
+$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS_BP) $(LIBS)
$(OBJS_BP): $(SRCS_FP) $(NONSRCS)
.c.o:
+$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
EOF
"$CROSS_COMPILE"strip -s -R .note -R .comment mksh
install -D -m 755 mksh "$butch_install_dir""$butch_prefix"/bin/mksh
install -D -m 644 mksh.1 "$butch_install_dir""$butch_prefix"/share/man/man1/mksh.1