untested script to build mirbsdksh on about every current GNU/Linux
the principle worked today at work. I'm pondering about config.h and supported features, though; also, some more sections could be stripped.
This commit is contained in:
parent
c24eb7cf37
commit
20c2ca1817
15
BuildGNU.sh
Normal file
15
BuildGNU.sh
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
# Build the mirbsdksh on GNU operating systems
|
||||
|
||||
if [ -e strlcpy.c -a -e strlcat.c ]; then
|
||||
/bin/sh ./siglist.sh "gcc -E -DKSH -DHAVE_CONFIG_H -I." \
|
||||
<siglist.in >siglist.out
|
||||
/bin/sh ./emacs-gen.sh emacs.c >emacs.out
|
||||
gcc -O2 -fomit-frame-pointer -static -o ksh *.c
|
||||
tbl <ksh.1tbl | eqn -Tascii | nroff -mandoc -Tascii >ksh.cat1
|
||||
strip --strip-all -R .note -R .comment ksh
|
||||
else
|
||||
echo "Copy strlcpy.c and strlcat.c here first, and"
|
||||
echo "optionally kill Ulrich Drepper & co. for not"
|
||||
echo "including it into your broken libc imitation"
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user