bring back $LDSTATIC support

This commit is contained in:
tg 2012-04-06 15:03:42 +00:00
parent a4eb9795de
commit ab1ba32d0b
1 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.539 2012/04/06 13:25:51 tg Exp $'
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.540 2012/04/06 15:03:42 tg Exp $'
#-
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
# 2011, 2012
@ -379,6 +379,11 @@ if test x"$srcdir" = x"."; then
else
CPPFLAGS="-I. -I'$srcdir' $CPPFLAGS"
fi
test -n "$LDSTATIC" && if test -n "$LDFLAGS"; then
LDFLAGS="$LDFLAGS $LDSTATIC"
else
LDFLAGS=$LDSTATIC
fi
test x"$TARGET_OS" = x"" && TARGET_OS=`uname -s 2>/dev/null || uname`
if test x"$TARGET_OS" = x""; then
@ -1371,7 +1376,7 @@ else
#define EXTERN
#define MKSH_INCLUDES_ONLY
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.539 2012/04/06 13:25:51 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.540 2012/04/06 15:03:42 tg Exp $");
int main(void) { printf("Hello, World!\n"); return (0); }
EOF
case $cm in
@ -2035,6 +2040,7 @@ CFLAGS if empty, defaults to -xO2 or +O2
or -O3 -qstrict or -O2, per compiler
CPPFLAGS default empty
LDFLAGS default empty; added before sources
LDSTATIC set this to '-static'; default unset
LIBS default empty; added after sources
[Interix] default: -lcrypt (XXX still needed?)
NOWARN -Wno-error or similar