diff --git a/test/cfg/runtests.sh b/test/cfg/runtests.sh index ab9e19050..21dd1b0dc 100755 --- a/test/cfg/runtests.sh +++ b/test/cfg/runtests.sh @@ -42,6 +42,8 @@ else QTCONFIG_RETURNCODE=$? set -e if [ $QTCONFIG_RETURNCODE -eq 0 ]; then + QTBUILDCONFIG=$(pkg-config --variable=qt_config Qt5Core) + [[ $QTBUILDCONFIG =~ (^|[[:space:]])reduce_relocations($|[[:space:]]) ]] && QTCONFIG="${QTCONFIG} -fPIC" set +e echo -e "#include " | ${CXX} ${CXX_OPT} ${QTCONFIG} -x c++ - QTCHECK_RETURNCODE=$?