mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 04:40:04 +01:00
build: use .dynsym for selecting symbols to export
Nm uses .symtab by default which is less reliable for this use case. Previously this would fail if user enabled stripping or used linker that doesn't add undefined symbols to .symtab, like here: https://github.com/davidlattimore/wild/issues/819#issuecomment-3215079862
This commit is contained in:
parent
7242c478a1
commit
e5884cfb18
1 changed files with 1 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ _sort() {
|
|||
|
||||
call_nm() {
|
||||
if [ -n "$from_meson" ]; then
|
||||
"${NM:-nm}" "$1" |
|
||||
"${NM:-nm}" -D "$1" |
|
||||
sed -n 's/.* \([^ ]\) \([^ ]*\)$/\1 \2/p'
|
||||
else
|
||||
libtool=(${LIBTOOL:-libtool})
|
||||
|
|
@ -105,4 +105,3 @@ case "$1" in
|
|||
do_generate
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue