Fix strict-ld grep expressions to include digits.

`tox_options_[gs]et_ipv6_enabled` were missing from the version script
because the grep expression only accepted `[a-z_]`. Now it also accepts
digits in the function names.
This commit is contained in:
iphydf 2016-09-20 23:50:24 +01:00
parent dd2965a58f
commit aa7670da5a
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

@ -381,7 +381,7 @@ endif()
function(make_version_script header ns lib)
execute_process(
COMMAND sh -c "egrep '^\\w' ${header} | grep '${ns}_[a-z_]*(' | grep -v '^typedef' | grep -o '${ns}_[a-z_]*(' | egrep -o '\\w+' | sort -u"
COMMAND sh -c "egrep '^\\w' ${header} | grep '${ns}_[a-z0-9_]*(' | grep -v '^typedef' | grep -o '${ns}_[a-z0-9_]*(' | egrep -o '\\w+' | sort -u"
OUTPUT_VARIABLE ${lib}_SYMS
OUTPUT_STRIP_TRAILING_WHITESPACE)
string(REPLACE "\n" ";" ${lib}_SYMS ${${lib}_SYMS})