cmake-utils.eclass: Make the new ASM-ATT rules actually work
authorJames Le Cuirot <chewi@gentoo.org>
Mon, 19 Mar 2018 21:16:34 +0000 (21:16 +0000)
committerMatt Turner <mattst88@gentoo.org>
Fri, 23 Mar 2018 23:41:47 +0000 (16:41 -0700)
commit03a4991d9ae07d5273a73ae4556b5cd1007ab6ff
tree936e11da15184a36119290ac8f4f4c066b85683f
parentef7c77a9c4ef340fdfa08f41ec862f871bbd4075
cmake-utils.eclass: Make the new ASM-ATT rules actually work

The previous attempt actually broke ASM in media-libs/vulkan-loader
entirely so that it fell back to C code. After much experimentation
and combing through strace output, I found that -x assembler is needed
to handle non-standard file extentions and linking is done as a
separate step. CMAKE_ASM-ATT_LINK_FLAGS therefore needs to be defined
with -nostdlib to avoid errors about undefined main symbols.

Closes: https://bugs.gentoo.org/625844
eclass/cmake-utils.eclass