configure: Always use AC_LINK_ELSEIF when testing against assembler

Authored by bgamari on Mar 31 2019, 3:00 PM.

Description

configure: Always use AC_LINK_ELSEIF when testing against assembler

This fixes Trac #16440, where the build system incorrectly concluded that the
.subsections_via_symbols assembler directive was supported on a Linux
system. This was caused by the fact that gcc was invoked with -flto;
when so-configured gcc does not call the assembler but rather simply
serialises its AST for compilation during the final link.

This is described in Note [autoconf assembler checks and -flto].

(cherry picked from commit 7b090b53fea065d2cfd967ea919426af9ba8d737)

Details

Committed
bgamariApr 3 2019, 6:45 AM
Parents
rGHC42eb3a5e2409: Set VERSION=8.6.5
Branches
Unknown
Tags
Unknown
References
tag: wip/ghc-8.6.5