Skip to content

Commit

Permalink
mkproto.sh: avoid locale-dependent sort by nm
Browse files Browse the repository at this point in the history
This avoids portability problems between different builds.
  • Loading branch information
stsp committed Sep 11, 2024
1 parent ab744b2 commit b186cc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libc/dj64/parsers/mkproto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ extr_proto() {
}

list_syms() {
nm -A "$1" | grep " $2 " | tr -s '[:blank:]' | cut -d " " -f 3 | \
LC_ALL=C nm -A "$1" | grep " $2 " | tr -s '[:blank:]' | cut -d " " -f 3 | \
sed 's/^_//'
}

list_syms2() {
nm -A "$1" | grep -E " $2 "\|" $3 " | tr -s '[:blank:]' | cut -d " " -f 3 | \
LC_ALL=C nm -A "$1" | grep -E " $2 "\|" $3 " | tr -s '[:blank:]' | cut -d " " -f 3 | \
sed 's/^_//'
}

Expand Down

0 comments on commit b186cc0

Please sign in to comment.