1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-23 06:35:36 +00:00

Merge pull request #1492 from ailin-nemui/meson-apple

document meson apple workaround
This commit is contained in:
ailin-nemui 2023-09-06 14:04:20 +00:00 committed by GitHub
commit 8c8e4e34d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -108,3 +108,11 @@ would call:
Getting perl scripting to work needs a few things:
- TODO
Apple MacOS / Darwin
At the time of writing, meson has an open issue with correctly linking
libraries on macos.
See docs/meson-macos-ar.txt for a workaround.

6
docs/meson-macos-ar.txt Normal file
View File

@ -0,0 +1,6 @@
;; manual workaround for meson bug https://github.com/mesonbuild/meson/issues/11165
;; fixes compilation with meson on apple macos
;; usage: meson --native-file ./docs/meson-macos-ar.txt ...
[binaries]
ar = ['/bin/sh', '-c', 'ar=${AR:-ar}; ranlib=${RANLIB:-ranlib -c -}; case "x$1" in xcsr*) $ar "$@" && $ranlib "$2" || exit $?; ;; *) exec $ar "$@"; ;; esac;', 'ar']