these files aren't needed in-tree
This commit is contained in:
parent
deedab0128
commit
5f7c1fdd91
63
BuildGNU.sh
63
BuildGNU.sh
@ -1,63 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# $MirBSD: BuildGNU.sh,v 1.9 2004/04/23 23:06:07 tg Exp $
|
|
||||||
#-
|
|
||||||
# Copyright (c) 2004
|
|
||||||
# Thorsten "mirabile" Glaser <x86@ePost.de>
|
|
||||||
#
|
|
||||||
# Subject to these terms, everybody who obtained a copy of this work
|
|
||||||
# is hereby permitted to deal in the work without restriction inclu-
|
|
||||||
# ding without limitation the rights to use, distribute, sell, modi-
|
|
||||||
# fy, publically perform, give away, merge or sublicence it provided
|
|
||||||
# this notice is kept and the authors and contributors are given due
|
|
||||||
# credit in derivates or accompanying documents.
|
|
||||||
#
|
|
||||||
# This work is provided by its developers (authors and contributors)
|
|
||||||
# "as is" and without any warranties whatsoever, express or implied,
|
|
||||||
# to the maximum extent permitted by applicable law; in no event may
|
|
||||||
# developers be held liable for damage caused, directly or indirect-
|
|
||||||
# ly, but not by a developer's malice intent, even if advised of the
|
|
||||||
# possibility of such damage.
|
|
||||||
#-
|
|
||||||
# Build the mirbsdksh on GNU and other operating systems.
|
|
||||||
# Note: on some systems, you must run it with a pre-existing bash or
|
|
||||||
# korn shell, because the Bourne seems to choke on the if sta-
|
|
||||||
# tement below for some unknown reason.
|
|
||||||
# Note: Solaris might want LDFLAGS=-ldl, some GNU/Linux systems usu-
|
|
||||||
# ally have problems with their perl path (use -I for the .ph)
|
|
||||||
# Note: For a couple of systems (Solaris, Microsoft Interix), you'll
|
|
||||||
# have to use a pre-installed ksh or GNU bash for bootstrap.
|
|
||||||
# Note: On Mac OSX, you need LDFLAGS= (empty) - it seems to not find
|
|
||||||
# the C Runtime Initialization Object files else.
|
|
||||||
|
|
||||||
SHELL="${SHELL:-/bin/sh}"; export SHELL
|
|
||||||
CONFIG_SHELL="${SHELL}"; export CONFIG_SHELL
|
|
||||||
CC="${CC:-gcc}"
|
|
||||||
CPPFLAGS="$CPPFLAGS -DHAVE_CONFIG_H -I. -DKSH"
|
|
||||||
CFLAGS="-O2 -fomit-frame-pointer -fno-strict-aliasing $CFLAGS"
|
|
||||||
LDFLAGS="${LDFLAGS:--static}"
|
|
||||||
|
|
||||||
if [ -e strlcpy.c -a -e strlcat.c ]; then
|
|
||||||
echo "Configuring..."
|
|
||||||
$SHELL ./configure
|
|
||||||
echo "Generating prerequisites..."
|
|
||||||
$SHELL ./siglist.sh "gcc -E $CPPFLAGS" <siglist.in >siglist.out
|
|
||||||
$SHELL ./emacs-gen.sh emacs.c >emacs.out
|
|
||||||
echo "Building..."
|
|
||||||
$CC $CFLAGS $CPPFLAGS $LDFLAGS -o ksh *.c
|
|
||||||
echo "Finalizing..."
|
|
||||||
tbl <ksh.1tbl | nroff -mandoc -Tascii >ksh.cat1
|
|
||||||
cp ksh ksh.unstripped
|
|
||||||
strip -R .note -R .comment -R .rel.dyn -R .sbss \
|
|
||||||
--strip-unneeded --strip-all ksh \
|
|
||||||
|| strip ksh || mv ksh.unstripped ksh
|
|
||||||
rm -f ksh.unstripped
|
|
||||||
size ksh
|
|
||||||
echo "done."
|
|
||||||
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
|
|
||||||
|
|
||||||
# If you want to test mirbsdksh:
|
|
||||||
# $ perl ./tests/th -s ./tests -p ./ksh -C pdksh,sh,ksh,posix,posix-upu
|
|
Loading…
x
Reference in New Issue
Block a user