Skip to content

Commit

Permalink
try fix 1
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Oct 16, 2024
1 parent 41c8187 commit 9977604
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _info-bin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ while [ -n "${1:-}" ]; do
if [ "${is_curl}" = '1' ] && [ "${filetype}" != 'exe' ]; then # Verify exported curl symbols
"${NM}" --extern-only --defined-only "${f}" # -g -U
"${NM}" --extern-only --defined-only "${f}" | grep -a -F ' _curl_' | sort || false # -g -U
"${NM}" --extern-only --defined-only "${f}" | grep -a -F -v ' T _curl_' && false # should not export anything else except the libcurl API
# should not export anything else except the libcurl API
if ! "${NM}" --extern-only --defined-only "${f}" | grep -a -F -v ' T _curl_'; then
echo "! '${f}' exports non-curl symbols."
exit 1
fi
fi
elif [ "${_OS}" = 'linux' ]; then
# NOTE: objdump -syms (-t) to show symbol visibility flags
Expand Down

0 comments on commit 9977604

Please sign in to comment.