Skip to content

Draft: build-sys: meson: add canonical-host-arch parameter

CANONICAL_HOST value changes with meson build from x86_64-pc-linux-gnu to x86_64 This breaks upgrade from binary produced by autotools to binary produced by meson in otherwise same environment.

Add canonical-host-arch parameter to meson to allow packagers override CANONICAL_HOST

This is a workaround for #1062 (closed)

meson build ... -D canonical-host-arch=x86_64-pc-linux-gnu ...
...
grep CANONICAL_HOST build/config.h
#define CANONICAL_HOST "x86_64-pc-linux-gnu"
Edited by Igor Kovalenko

Merge request reports