The bundled libtool filters a bunch of flags when using clang (see line 7776). The problematic part here is that it filters things such as '-fuse-ld=*', which breaks compilation with LTO, or '-pie', which causes the final binaries to be non-pie. The solution is to call eautoreconf in src_prepare
Created attachment 749628 [details, diff] patch as requested by sam
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bcf56a162cd538301683fdf4b9be5a698c38eed commit 8bcf56a162cd538301683fdf4b9be5a698c38eed Author: Jannik Glückert <jannik.glueckert@gmail.com> AuthorDate: 2021-11-08 22:06:17 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-11-08 22:10:32 +0000 app-text/libmwaw: allways call eautoreconf (refresh libtool; fixes Clang) Closes: https://bugs.gentoo.org/814512 Signed-off-by: Jannik Glückert <jannik.glueckert@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> app-text/libmwaw/libmwaw-0.3.20.ebuild | 4 +++- app-text/libmwaw/libmwaw-9999.ebuild | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7389d729922d94ca92ce13c908f732d3c288f49 commit e7389d729922d94ca92ce13c908f732d3c288f49 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-11-08 23:13:46 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-11-08 23:13:54 +0000 app-text/libmwaw: add missing inherit Closes: https://bugs.gentoo.org/814512 Signed-off-by: Sam James <sam@gentoo.org> app-text/libmwaw/libmwaw-0.3.20.ebuild | 4 +++- app-text/libmwaw/libmwaw-9999.ebuild | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)