From 9977604b2e97a9fba44248b991530bdd01a0b538 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 16 Oct 2024 11:46:51 +0200 Subject: [PATCH] try fix 1 --- _info-bin.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/_info-bin.sh b/_info-bin.sh index e7f194242..1d9bdd4dc 100755 --- a/_info-bin.sh +++ b/_info-bin.sh @@ -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