Some awk implementations like mawk (used on Ubuntu) do not support these.
Unified · Split
| @@ -6152,7 +6152,7 @@ enabled pic && enable_weak_pic · 6151 unmodified lines | |||
| 6152 | test_cc <<EOF || die "Symbol mangling check failed." | 6152 | test_cc <<EOF || die "Symbol mangling check failed." |
| 6153 | int ff_extern; | 6153 | int ff_extern; |
| 6154 | EOF | 6154 | EOF |
| 6155 | sym=$($nm $TMPO | awk '/[ \t]+[^ \t]{0,1}ff_extern$/{ print substr($0, match($0, /[^ \t]{0,1}ff_extern$/)) }') | 6155 | sym=$($nm $TMPO | awk '/[ \t]+[^ \t]?ff_extern$/{ print substr($0, match($0, /[^ \t]?ff_extern$/)) }') |
| 6156 | extern_prefix=${sym%%ff_extern*} | 6156 | extern_prefix=${sym%%ff_extern*} |
| 6157 | 6157 | ||
| 6158 | log "Symbol prefix detected as: '${extern_prefix}'" | 6158 | log "Symbol prefix detected as: '${extern_prefix}'" |