]> git.pld-linux.org Git - packages/VirtualBox.git/blobdiff - qt-detect.patch
- fix braindead qt5 includedir detection
[packages/VirtualBox.git] / qt-detect.patch
diff --git a/qt-detect.patch b/qt-detect.patch
new file mode 100644 (file)
index 0000000..564e645
--- /dev/null
@@ -0,0 +1,11 @@
+--- VirtualBox-6.1.26/configure~       2021-09-10 08:38:49.000000000 +0200
++++ VirtualBox-6.1.26/configure        2021-09-10 09:01:11.297646984 +0200
+@@ -1564,7 +1564,7 @@
+           FLGQT5=`pkg-config Qt5Core Qt5Gui --cflags`
+           # gcc 4.8 is able to compile with C++11 (see also VBOX_GCC_std in Config.kmk)
+           [ $(($cc_maj * 100 + $cc_min)) -ge 408 ] && FLGQT5="$FLGQT5 -std=c++11"
+-          INCQT5=`strip_I "$FLGQT5"`
++          INCQT5=`pkg-config Qt5Core --variable=includedir`
+           LIBDIR5=`pkg-config Qt5Core --variable=libdir`
+           LIBQT5=`pkg-config Qt5Core Qt5Gui --libs`
+           LIBQT5="-L$LIBDIR5 $LIBQT5"
This page took 0.080151 seconds and 4 git commands to generate.