diff options
author | Marvin Schmidt <marv@exherbo.org> | 2017-04-26 15:27:08 +0200 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2018-08-08 12:24:53 +0100 |
commit | 198e8b0229ebe9beb886def03f123fc95d165423 (patch) | |
tree | 125e7f780b89eecf6e4e21c688fdafe88f0daa2e /gsettings | |
parent | ddd245227eb8459587e87a79fa06e8aaea0dabba (diff) | |
download | dconf-198e8b0229ebe9beb886def03f123fc95d165423.tar.gz |
abicheck: Use ${NM} and fall back to `nm`
`nm` possibly isn't the correct nm executable, especially when
cross-compiling. Allow overriding it using ${NM}
https://bugzilla.gnome.org/show_bug.cgi?id=781769
Diffstat (limited to 'gsettings')
-rwxr-xr-x | gsettings/abicheck.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gsettings/abicheck.sh b/gsettings/abicheck.sh index 91c0f09..c8b072b 100755 --- a/gsettings/abicheck.sh +++ b/gsettings/abicheck.sh @@ -1,4 +1,4 @@ #!/bin/sh -nm --dynamic --defined-only $GSETTINGS_LIB > public-abi +${NM:-nm} --dynamic --defined-only $GSETTINGS_LIB > public-abi test "`cat public-abi | cut -f 3 -d ' ' | grep -v ^_ | grep -v ^g_io_module | wc -l`" -eq 0 && rm public-abi |