derle.sh 988 B

12345678910111213141516171819202122232425262728293031323334
  1. cd qtbase-everywhere-src-$surum
  2. sed -i -e "s|^\(QMAKE_CFLAGS_RELEASE.*\)|\1 ${CFLAGS}|" \
  3. mkspecs/common/gcc-base.conf
  4. sed -i -e "s|^\(QMAKE_LFLAGS_RELEASE.*\)|\1 ${LDFLAGS}|" \
  5. mkspecs/common/g++-unix.conf
  6. patch -p1 -i ../qtbase-qxcbwindow.patch # Fix NVIDIA freeze
  7. patch -p1 -i ../qtbase-zlib-compression.patch # Change the default compression back to zlib for backwards compatibility
  8. patch -p1 -i ../virtualbox-focus.patch # Fix virtualbox constantly stealing focus https://bugreports.qt.io/browse/QTBUG-76742
  9. ./configure -confirm-license -opensource -v \
  10. -prefix /usr \
  11. -docdir /usr/share/doc/qt \
  12. -headerdir /usr/include/qt \
  13. -archdatadir /usr/lib/qt \
  14. -datadir /usr/share/qt \
  15. -sysconfdir /etc/xdg \
  16. -examplesdir /usr/share/doc/qt/examples \
  17. -plugin-sql-{psql,mysql,sqlite,odbc,ibase} \
  18. -system-sqlite \
  19. -openssl-linked \
  20. -nomake examples \
  21. -no-rpath \
  22. -optimized-qmake \
  23. -dbus-linked \
  24. -system-harfbuzz \
  25. -no-mimetype-database \
  26. -no-use-gold-linker \
  27. -reduce-relocations
  28. make