mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
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:
parent
dd2965a58f
commit
aa7670da5a
|
@ -381,7 +381,7 @@ endif()
|
||||||
|
|
||||||
function(make_version_script header ns lib)
|
function(make_version_script header ns lib)
|
||||||
execute_process(
|
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_VARIABLE ${lib}_SYMS
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
string(REPLACE "\n" ";" ${lib}_SYMS ${${lib}_SYMS})
|
string(REPLACE "\n" ";" ${lib}_SYMS ${${lib}_SYMS})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user