Skip to content

Commit 1a779be

Browse files
committed
imagemagick: --without-gcc-arch
ax_gcc_archflag has no Zen cpuid pattern and falls back to -mtune=amdfam10, which under LLVM+LTO emits SSE4a extrq and SIGILLs on Intel hosts. Disable the implicit --with-gcc-arch so host CPU features do not bleed into the built binaries.
1 parent 7ae5d74 commit 1a779be

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Package/Library/imagemagick.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ public function buildUnix(LibraryPackage $lib, ToolchainInterface $toolchain): v
4242
->addConfigureArgs(
4343
'--disable-openmp',
4444
'--without-x',
45+
// implicit --with-gcc-arch
46+
// bleeds host cpu features into built binaries
47+
'--without-gcc-arch',
4548
);
4649

4750
// special: linux-static target needs `-static`

0 commit comments

Comments
 (0)