Skip to content

Commit

Permalink
qt
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Dec 16, 2024
1 parent f4a276b commit c1b553b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/cfg/runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,11 @@ function qt_fn {
if [ -z "$QTCONFIG" ]; then
QTCONFIG=$(get_pkg_config_cflags Qt5Core Qt5Test Qt5Gui)
QTBUILDCONFIG=$(pkg-config --variable=qt_config Qt5Core Qt5Test Qt5Gui)
[[ $QTBUILDCONFIG =~ (^|[[:space:]])reduce_relocations($|[[:space:]]) ]] && QTCONFIG="${QTCONFIG} -fPIC"
else
QTCONFIG="${QTCONFIG} -fPIC"
fi
if [ -n "$QTCONFIG" ]; then
[[ $QTBUILDCONFIG =~ (^|[[:space:]])reduce_relocations($|[[:space:]]) ]] && QTCONFIG="${QTCONFIG} -fPIC"
# TODO: get rid of the error enabling/disabling?
set +e
echo -e "#include <QString>" | ${CXX} "${CXX_OPT[@]}" ${QTCONFIG} -x c++ -
Expand Down

0 comments on commit c1b553b

Please sign in to comment.