summaryrefslogtreecommitdiffstats
path: root/bin/misc-functions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/misc-functions.sh')
-rwxr-xr-xbin/misc-functions.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index b6bd8ed36..4a1a2235b 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -311,20 +311,20 @@ install_qa_check() {
# Check for files built without respecting CFLAGS
if [[ "${CFLAGS}" == *-frecord-gcc-switches* ]] && \
! has binchecks ${RESTRICT} ; then
- qa_var="QA_DT_SWITCHES_${ARCH/-/_}"
- eval "[[ -n \${!qa_var} ]] && QA_DT_SWITCHES=(\"\${${qa_var}[@]}\")"
+ qa_var="QA_CFLAGS_IGNORED_${ARCH/-/_}"
+ eval "[[ -n \${!qa_var} ]] && QA_CFLAGS_IGNORED=(\"\${${qa_var}[@]}\")"
f=$(scanelf -qyRF '%k %p' -k \!.GCC.command.line "${ED}" | sed -e "s:\!.GCC.command.line ::")
if [[ -n ${f} ]] ; then
echo "${f}" > "${T}"/scanelf-ignored-CFLAGS.log
if [ "${QA_STRICT_DT_SWITCHES-unset}" == unset ] ; then
- if [[ ${#QA_DT_SWITCHES[@]} -gt 1 ]] ; then
- for x in "${QA_DT_SWITCHES[@]}" ; do
+ if [[ ${#QA_CFLAGS_IGNORED[@]} -gt 1 ]] ; then
+ for x in "${QA_CFLAGS_IGNORED[@]}" ; do
sed -e "s#^${x#/}\$##" -i "${T}"/scanelf-ignored-CFLAGS.log
done
else
local shopts=$-
set -o noglob
- for x in ${QA_DT_SWITCHES} ; do
+ for x in ${QA_CFLAGS_IGNORED} ; do
sed -e "s#^${x#/}\$##" -i "${T}"/scanelf-ignored-CFLAGS.log
done
set +o noglob