add CPPFLAGS for The HURD
This commit is contained in:
parent
a0fcdecb75
commit
ebaf8ed5b5
22
Build.sh
22
Build.sh
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $MirOS: src/bin/mksh/Build.sh,v 1.149 2007/02/02 10:27:21 tg Exp $
|
# $MirOS: src/bin/mksh/Build.sh,v 1.150 2007/02/13 12:26:46 tg Exp $
|
||||||
#-
|
#-
|
||||||
# Env: CC, CFLAGS, CPP, CPPFLAGS, LDFLAGS, LIBS, NOWARN, NROFF, TARGET_OS
|
# Env: CC, CFLAGS, CPP, CPPFLAGS, LDFLAGS, LIBS, NOWARN, NROFF, TARGET_OS
|
||||||
# CPPFLAGS recognised: MKSH_SMALL MKSH_NOPWNAM
|
# CPPFLAGS recognised: MKSH_SMALL MKSH_NOPWNAM
|
||||||
@ -175,6 +175,7 @@ test $r = 0 && echo | $NROFF -v 2>&1 | grep GNU >/dev/null 2>&1 && \
|
|||||||
|
|
||||||
|
|
||||||
test x"$TARGET_OS" = x"" && TARGET_OS=`uname -s 2>/dev/null || uname`
|
test x"$TARGET_OS" = x"" && TARGET_OS=`uname -s 2>/dev/null || uname`
|
||||||
|
warn=
|
||||||
case $TARGET_OS in
|
case $TARGET_OS in
|
||||||
CYGWIN*)
|
CYGWIN*)
|
||||||
test def = $s && s=pam
|
test def = $s && s=pam
|
||||||
@ -187,10 +188,12 @@ DragonFly)
|
|||||||
;;
|
;;
|
||||||
FreeBSD)
|
FreeBSD)
|
||||||
;;
|
;;
|
||||||
|
GNU)
|
||||||
|
warn=' but should work'
|
||||||
|
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||||
|
;;
|
||||||
GNU/kFreeBSD)
|
GNU/kFreeBSD)
|
||||||
echo Warning: mksh has not yet been ported to $TARGET_OS >&2
|
warn=' but should work'
|
||||||
echo but should work. If you can provide a shell account >&2
|
|
||||||
echo to the developer, the situation may improve. >&2
|
|
||||||
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
|
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||||
;;
|
;;
|
||||||
Interix)
|
Interix)
|
||||||
@ -214,12 +217,17 @@ SunOS)
|
|||||||
r=1
|
r=1
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo Warning: mksh has not yet been tested on your operating >&2
|
warn='; it may or may not work'
|
||||||
echo system "'$TARGET_OS';" it may or may not work. Please drop >&2
|
|
||||||
echo us a notice if it works or not or send diffs to make it work. >&2
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if test -n "$warn"; then
|
||||||
|
echo "Warning: mksh has not yet been ported to or tested on your" >&2
|
||||||
|
echo "operating system '$TARGET_OS'$warn. If you can provide" >&2
|
||||||
|
echo "a shell account to the developer, this may improve; please" >&2
|
||||||
|
echo "drop us a success or failure notice or even send in diffs." >&2
|
||||||
|
fi
|
||||||
|
|
||||||
CPPFLAGS="$CPPFLAGS -I'$curdir'"
|
CPPFLAGS="$CPPFLAGS -I'$curdir'"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user