bring back $LDSTATIC support
This commit is contained in:
parent
a4eb9795de
commit
ab1ba32d0b
10
Build.sh
10
Build.sh
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/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,
|
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
||||||
# 2011, 2012
|
# 2011, 2012
|
||||||
@ -379,6 +379,11 @@ if test x"$srcdir" = x"."; then
|
|||||||
else
|
else
|
||||||
CPPFLAGS="-I. -I'$srcdir' $CPPFLAGS"
|
CPPFLAGS="-I. -I'$srcdir' $CPPFLAGS"
|
||||||
fi
|
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`
|
test x"$TARGET_OS" = x"" && TARGET_OS=`uname -s 2>/dev/null || uname`
|
||||||
if test x"$TARGET_OS" = x""; then
|
if test x"$TARGET_OS" = x""; then
|
||||||
@ -1371,7 +1376,7 @@ else
|
|||||||
#define EXTERN
|
#define EXTERN
|
||||||
#define MKSH_INCLUDES_ONLY
|
#define MKSH_INCLUDES_ONLY
|
||||||
#include "sh.h"
|
#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); }
|
int main(void) { printf("Hello, World!\n"); return (0); }
|
||||||
EOF
|
EOF
|
||||||
case $cm in
|
case $cm in
|
||||||
@ -2035,6 +2040,7 @@ CFLAGS if empty, defaults to -xO2 or +O2
|
|||||||
or -O3 -qstrict or -O2, per compiler
|
or -O3 -qstrict or -O2, per compiler
|
||||||
CPPFLAGS default empty
|
CPPFLAGS default empty
|
||||||
LDFLAGS default empty; added before sources
|
LDFLAGS default empty; added before sources
|
||||||
|
LDSTATIC set this to '-static'; default unset
|
||||||
LIBS default empty; added after sources
|
LIBS default empty; added after sources
|
||||||
[Interix] default: -lcrypt (XXX still needed?)
|
[Interix] default: -lcrypt (XXX still needed?)
|
||||||
NOWARN -Wno-error or similar
|
NOWARN -Wno-error or similar
|
||||||
|
Loading…
x
Reference in New Issue
Block a user