From bbbb6565bb3117f6d2312833fbb706b04a1a13ad Mon Sep 17 00:00:00 2001 From: barts Date: Fri, 2 Feb 2024 10:15:30 +0100 Subject: [PATCH] improvement: removed -no-pch from the build-qt script --- scripts/build-qt | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/scripts/build-qt b/scripts/build-qt index 6cc86aa..886e21c 100755 --- a/scripts/build-qt +++ b/scripts/build-qt @@ -57,13 +57,27 @@ build-qt-static() { "$root/scripts/helpers/download-qt" --root "$source_dir" qt.qt6.661.src echo "Building Qt with static linking" + rm "$install_dir" -rf || true + mkdir "$install_dir" + export CC=gcc export CXX=g++ export CFLAGS="-Wall" - rm "$install_dir" -rf || true - mkdir "$install_dir" src="$source_dir/6.6.1/Src" - "$src/configure" -release -static -prefix "$install_dir" -submodules qtbase,qtmultimedia,qtwayland -no-pch -no-gstreamer -no-pulseaudio -no-alsa -- -S "$src" -B "$src/build" -Wdev -DFFMPEG_DIR="$root/3rdparty/ffmpeg" + "$src/configure" \ + -static \ + -release \ + -prefix "$install_dir" \ + -submodules qtbase,qtmultimedia,qtwayland \ + -no-alsa \ + -no-gstreamer \ + -no-pulseaudio \ + -- \ + -S "$src" \ + -B "$src/build" \ + -Wdev \ + -DFFMPEG_DIR="$root/3rdparty/ffmpeg" + cmake --build "$src/build" cmake --install "$src/build" }