mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-04 23:29:36 +00:00
Fix for LTO enabled environment by default
This commit is contained in:
parent
aa9f112de3
commit
e12789a57e
12
BasiliskII/src/Unix/configure.ac
Executable file → Normal file
12
BasiliskII/src/Unix/configure.ac
Executable file → Normal file
@ -1700,7 +1700,19 @@ cat > conftest.$ac_ext <<EOF
|
|||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
$1
|
$1
|
||||||
]EOF
|
]EOF
|
||||||
|
ac_save_CFLAGS=$CFLAGS
|
||||||
|
CFLAGS="$CFLAGS -fno-lto"
|
||||||
|
gcc_ac_compile_ok=0
|
||||||
if AC_TRY_EVAL(ac_compile); then
|
if AC_TRY_EVAL(ac_compile); then
|
||||||
|
gcc_ac_compile_ok=1
|
||||||
|
else
|
||||||
|
CFLAGS=$ac_save_CFLAGS
|
||||||
|
if AC_TRY_EVAL(ac_compile); then
|
||||||
|
gcc_ac_compile_ok=1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
CFLAGS=$ac_save_CFLAGS
|
||||||
|
if test "$gcc_ac_compile_ok" = 1; then
|
||||||
od -c conftest.o |
|
od -c conftest.o |
|
||||||
sed ['s/^[0-7]*[ ]*/ /
|
sed ['s/^[0-7]*[ ]*/ /
|
||||||
s/\*/./g
|
s/\*/./g
|
||||||
|
12
SheepShaver/src/Unix/configure.ac
Executable file → Normal file
12
SheepShaver/src/Unix/configure.ac
Executable file → Normal file
@ -1295,7 +1295,19 @@ cat > conftest.$ac_ext <<EOF
|
|||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
$1
|
$1
|
||||||
]EOF
|
]EOF
|
||||||
|
ac_save_CFLAGS=$CFLAGS
|
||||||
|
CFLAGS="$CFLAGS -fno-lto"
|
||||||
|
gcc_ac_compile_ok=0
|
||||||
if AC_TRY_EVAL(ac_compile); then
|
if AC_TRY_EVAL(ac_compile); then
|
||||||
|
gcc_ac_compile_ok=1
|
||||||
|
else
|
||||||
|
CFLAGS=$ac_save_CFLAGS
|
||||||
|
if AC_TRY_EVAL(ac_compile); then
|
||||||
|
gcc_ac_compile_ok=1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
CFLAGS=$ac_save_CFLAGS
|
||||||
|
if test "$gcc_ac_compile_ok" = 1; then
|
||||||
od -c conftest.o |
|
od -c conftest.o |
|
||||||
sed ['s/^[0-7]*[ ]*/ /
|
sed ['s/^[0-7]*[ ]*/ /
|
||||||
s/\*/./g
|
s/\*/./g
|
||||||
|
Loading…
Reference in New Issue
Block a user