summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2019-10-27 07:11:28 +0100
committerAllan McRae <allan@archlinux.org>2019-10-30 00:34:51 +0100
commit99639dc27c4c037b3fe7ddf2b77d036a7332b5e3 (patch)
tree5def403f410a97ee8d82dbaec96c8b23b3d59aad /meson.build
parentae5cf26b5b5b92c9f68b5b29787e7d636f334c12 (diff)
downloadpacman-99639dc27c4c037b3fe7ddf2b77d036a7332b5e3.tar.gz
pacman-99639dc27c4c037b3fe7ddf2b77d036a7332b5e3.tar.xz
meson: fix inodecmd for darwin/bsd
The BSD stat command uses %N, not %n, and was incorrectly ported to meson. Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index c5704efe..1e2a78c3 100644
--- a/meson.build
+++ b/meson.build
@@ -236,13 +236,13 @@ endif
os = host_machine.system()
if os.startswith('darwin')
- inodecmd = '/usr/bin/stat -f \'%i %n\''
+ inodecmd = '/usr/bin/stat -f \'%i %N\''
default_sedinplaceflags = ' -i \'\''
strip_binaries = ''
strip_shared = '-s'
strip_static = '-s'
elif os.contains('bsd') or os == 'dragonfly'
- inodecmd = 'stat -f \'%i %n\''
+ inodecmd = 'stat -f \'%i %N\''
default_sedinplaceflags = ' -i \'\''
endif