From f7acd1f3fced2c5e6086a55838689d4e89a16819 Mon Sep 17 00:00:00 2001 From: tg Date: Fri, 28 Dec 2012 03:05:17 +0000 Subject: [PATCH] =?UTF-8?q?AIEEE!=2003:00=E2=8E=9C=C2=ABRT|AO:#!/bin/mksh?= =?UTF-8?q?=C2=BB=20cc=20-c=20-o=20a.out=20does=20not=20output=20a.out=20b?= =?UTF-8?q?ut=20conftest.o=20(!!)=20evil=E2=80=A6=20just=20use=20tcfn=3Dco?= =?UTF-8?q?nftest.o=20for=20now,=20cf.=20cid=201004713D70A5362BACF=20(but?= =?UTF-8?q?=20why=20must=20it=20be=20one=3F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Build.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Build.sh b/Build.sh index d1601f4..26ba6d3 100644 --- a/Build.sh +++ b/Build.sh @@ -1,5 +1,5 @@ #!/bin/sh -srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.607 2012/12/28 02:28:29 tg Exp $' +srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.608 2012/12/28 03:05:17 tg Exp $' #- # Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # 2011, 2012 @@ -1528,7 +1528,7 @@ else #define EXTERN #define MKSH_INCLUDES_ONLY #include "sh.h" - __RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.607 2012/12/28 02:28:29 tg Exp $"); + __RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.608 2012/12/28 03:05:17 tg Exp $"); int main(void) { printf("Hello, World!\n"); return (0); } EOF case $cm in @@ -1808,8 +1808,8 @@ EOF # # check headers for declarations # -save_CC=$CC; save_LDFLAGS=$LDFLAGS; save_LIBS=$LIBS -CC="$CC -c -o $tcfn"; LDFLAGS=; LIBS= +save_tcfn=$tcfn; save_CC=$CC; save_LDFLAGS=$LDFLAGS; save_LIBS=$LIBS +tcfn=conftest.o; CC="$CC -c -o $tcfn"; LDFLAGS=; LIBS= ac_test '!' flock_decl flock 1 'if flock() does not need to be declared' <<-'EOF' #define MKSH_INCLUDES_ONLY #include "sh.h" @@ -1835,7 +1835,7 @@ ac_test sys_siglist_decl sys_siglist 0 'for declaration of sys_siglist[]' <<-'EO #include "sh.h" int main(void) { return (sys_siglist[0][0]); } EOF -CC=$save_CC; LDFLAGS=$save_LDFLAGS; LIBS=$save_LIBS +tcfn=$save_tcfn; CC=$save_CC; LDFLAGS=$save_LDFLAGS; LIBS=$save_LIBS # # other checks