Skip to content

Commit 9977604

Browse files
committed
try fix 1
1 parent 41c8187 commit 9977604

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

_info-bin.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ while [ -n "${1:-}" ]; do
7373
if [ "${is_curl}" = '1' ] && [ "${filetype}" != 'exe' ]; then # Verify exported curl symbols
7474
"${NM}" --extern-only --defined-only "${f}" # -g -U
7575
"${NM}" --extern-only --defined-only "${f}" | grep -a -F ' _curl_' | sort || false # -g -U
76-
"${NM}" --extern-only --defined-only "${f}" | grep -a -F -v ' T _curl_' && false # should not export anything else except the libcurl API
76+
# should not export anything else except the libcurl API
77+
if ! "${NM}" --extern-only --defined-only "${f}" | grep -a -F -v ' T _curl_'; then
78+
echo "! '${f}' exports non-curl symbols."
79+
exit 1
80+
fi
7781
fi
7882
elif [ "${_OS}" = 'linux' ]; then
7983
# NOTE: objdump -syms (-t) to show symbol visibility flags

0 commit comments

Comments
 (0)