commit: 8bfcabf96671e1d25c60c5b54f06078269a005b2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> AuthorDate: Sun Jun 16 07:33:43 2024 +0000 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> CommitDate: Sun Jun 16 07:33:43 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bfcabf9
app-arch/zstd-1.5.6: unbreak build on non-ELF platforms Basically unbreak the build on any platform where the linker/assembler doesn't grok the noexecstack arguments. Use test-flags-CCLD to invoke the linker/assembler after the compiler so the linker/assembler flags actually get tested, instead of just ignored by the compiler (which just passes them on). Bug: https://bugs.gentoo.org/903923 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> app-arch/zstd/zstd-1.5.6.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app-arch/zstd/zstd-1.5.6.ebuild b/app-arch/zstd/zstd-1.5.6.ebuild index 8197ff6bba36..605eaa0f47f8 100644 --- a/app-arch/zstd/zstd-1.5.6.ebuild +++ b/app-arch/zstd/zstd-1.5.6.ebuild @@ -54,8 +54,8 @@ multilib_src_configure() { # explicitly specified. See #903923 # The cmake build sets these, but the meson build doesn't, so set it manually. # https://github.com/facebook/zstd/blob/979b047/build/cmake/CMakeModules/AddZstdCompilationFlags.cmake#L77-L82 - append-flags $(test-flags "-Wa,--noexecstack") - append-ldflags $(test-flags "-Wl,-z,noexecstack") + append-flags $(test-flags-CCLD "-Wa,--noexecstack") + append-ldflags $(test-flags-CCLD "-Wl,-z,noexecstack") local emesonargs=( -Ddefault_library=$(multilib_native_usex static-libs both shared)
