diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-01-13 19:05:12 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-01-13 21:12:24 +0100 |
commit | 21b3f9ceef131258a721b1b29e52d0f9c4fd2ea4 (patch) | |
tree | ffe2d2e7edbb3685eb4523fe77c702d905e60568 /dev-build/meson/files/meson-1.3.1-xtools-support.patch | |
parent | Move {dev-util → dev-build}/meson-format-array (diff) | |
download | gentoo-21b3f9ceef131258a721b1b29e52d0f9c4fd2ea4.tar.gz gentoo-21b3f9ceef131258a721b1b29e52d0f9c4fd2ea4.tar.bz2 gentoo-21b3f9ceef131258a721b1b29e52d0f9c4fd2ea4.zip |
Move {dev-util → dev-build}/meson
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/34790
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-build/meson/files/meson-1.3.1-xtools-support.patch')
-rw-r--r-- | dev-build/meson/files/meson-1.3.1-xtools-support.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-build/meson/files/meson-1.3.1-xtools-support.patch b/dev-build/meson/files/meson-1.3.1-xtools-support.patch new file mode 100644 index 000000000000..6e9e670ba8da --- /dev/null +++ b/dev-build/meson/files/meson-1.3.1-xtools-support.patch @@ -0,0 +1,26 @@ +linkers_detect: detect xtools (Apple ld64 derivative) + +xtools is in use on x86_64 and ppc based darwin Prefix installs. Pick +it up as a valid linker. + +Meson is the only thing known at this point to try and figure out what +linker is in use exactly, so instead of changing the linker (xtools), +just teach Meson about xtools. + +Author: Fabian Groffen <grobian@gentoo.org> +Bug: https://bugs.gentoo.org/868516 + +--- a/mesonbuild/linkers/detect.py ++++ b/mesonbuild/linkers/detect.py +@@ -185,6 +185,11 @@ + v = search_version(o) + + linker = linkers.LLVMDynamicLinker(compiler, for_machine, comp_class.LINKER_PREFIX, override, version=v) ++ # detect xtools first, bug #868516 ++ elif 'xtools-' in o.split('\n')[0]: ++ xtools = o.split(' ')[0] ++ v = xtools.split('-')[1] ++ linker = AppleDynamicLinker(compiler, for_machine, comp_class.LINKER_PREFIX, override, version=v) + # First might be apple clang, second is for real gcc, the third is icc. + # Note that "ld: unknown option: " sometimes instead is "ld: unknown options:". + elif e.endswith('(use -v to see invocation)\n') or 'macosx_version' in e or 'ld: unknown option' in e: |