Skip to content

Commit 1d98eea

Browse files
committed
Use nm-new rather than nm, as older binutils name the binary that.
1 parent 86724bc commit 1d98eea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build_scripts/desktop/package.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,11 @@ readonly rename_string=f_b_
199199

200200
readonly demangle_cmds=${tools_path}/c++filt,${tools_path}/demumble
201201
readonly binutils_objcopy=${tools_path}/objcopy
202-
readonly binutils_nm=${tools_path}/nm
202+
if [[ -x ${tools_path}/nm-new ]] ;; then
203+
readonly binutils_nm=${tools_path}/nm-new
204+
else
205+
readonly binutils_nm=${tools_path}/nm
206+
fi
203207
readonly binutils_ar=${tools_path}/ar
204208

205209
cache_file=/tmp/merge_libraries_cache.$$

0 commit comments

Comments
 (0)