add -fno-asynchronous-unwind-tables for all GCC builds, as suggested by dalias and chris2
This commit is contained in:
parent
d8a6ce41de
commit
75af4e244a
6
Build.sh
6
Build.sh
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.597 2012/12/03 22:10:02 tg Exp $'
|
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.598 2012/12/05 19:38:05 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
|
||||||
|
@ -1154,6 +1154,8 @@ if test $ct = gcc; then
|
||||||
# The following tests run with -Werror (gcc only) if possible
|
# The following tests run with -Werror (gcc only) if possible
|
||||||
NOWARN=$DOWARN; phase=u
|
NOWARN=$DOWARN; phase=u
|
||||||
ac_flags 0 wnooverflow -Wno-overflow
|
ac_flags 0 wnooverflow -Wno-overflow
|
||||||
|
# mksh is not written in CFrustFrust!
|
||||||
|
ac_flags 1 no_eh_frame -fno-asynchronous-unwind-tables
|
||||||
ac_flags 1 fnostrictaliasing -fno-strict-aliasing
|
ac_flags 1 fnostrictaliasing -fno-strict-aliasing
|
||||||
ac_flags 1 fstackprotectorall -fstack-protector-all
|
ac_flags 1 fstackprotectorall -fstack-protector-all
|
||||||
test $cm = dragonegg && case " $CC $CFLAGS $LDFLAGS " in
|
test $cm = dragonegg && case " $CC $CFLAGS $LDFLAGS " in
|
||||||
|
@ -1480,7 +1482,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.597 2012/12/03 22:10:02 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.598 2012/12/05 19:38:05 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
|
||||||
|
|
Loading…
Reference in New Issue