[dconf] abicheck: Use ${NM} and fall back to `nm`



commit 198e8b0229ebe9beb886def03f123fc95d165423
Author: Marvin Schmidt <marv exherbo org>
Date:   Wed Apr 26 15:27:08 2017 +0200

    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

 gsettings/abicheck.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]