Commit 9977604 1 parent 41c8187 commit 9977604 Copy full SHA for 9977604
File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,11 @@ while [ -n "${1:-}" ]; do
73
73
if [ " ${is_curl} " = ' 1' ] && [ " ${filetype} " != ' exe' ]; then # Verify exported curl symbols
74
74
" ${NM} " --extern-only --defined-only " ${f} " # -g -U
75
75
" ${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
77
81
fi
78
82
elif [ " ${_OS} " = ' linux' ]; then
79
83
# NOTE: objdump -syms (-t) to show symbol visibility flags
You can’t perform that action at this time.
0 commit comments