Skip to content

Commit

Permalink
Add -no-lto when trying to compile the floating point format test
Browse files Browse the repository at this point in the history
(needed on openSuSE Tumbleweed, and maybe others)
  • Loading branch information
th-otto committed Dec 23, 2019
1 parent 64e72f2 commit 52c56bb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2019/12/23
Add -no-lto when trying to compile the floating point format test
(needed on openSuSE Tumbleweed, and maybe others)

This comment has been minimized.

Copy link
@eli-schwartz

eli-schwartz Mar 3, 2024

It's needed for any distro that tries compiling with LTO. For Gentoo, this is somewhat common on the user side (due to building from source, this is easy to tweak).

See e.g. https://bugs.gentoo.org/854510

Might be nice to have a new release with the fix? :)



2019/12/11
Release shift keys when we are about to loose input focus,
to avoid having stuck keys after alt-tabbing out of the window
Expand Down
12 changes: 12 additions & 0 deletions m4/float.m4
Expand Up @@ -23,7 +23,19 @@ cat > conftest.$ac_ext <<EOF
#include "confdefs.h"
$1
]EOF
ac_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -fno-lto"
gcc_ac_compile_ok=0
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 |
sed ['s/^[0-7]*[ ]*/ /
s/\*/./g
Expand Down

0 comments on commit 52c56bb

Please sign in to comment.