mkspecs.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. diff -Nuar a/mkspecs/common/g++-base.conf b/mkspecs/common/g++-base.conf
  2. --- a/mkspecs/common/g++-base.conf 2021-11-15 00:00:01.000000000 +0200
  3. +++ b/mkspecs/common/g++-base.conf 2021-11-15 22:49:20.969099951 +0200
  4. @@ -10,15 +10,17 @@
  5. QMAKE_COMPILER = gcc
  6. -QMAKE_CC = $${CROSS_COMPILE}gcc
  7. +QMAKE_CC = PISILINUX_CC
  8. -QMAKE_LINK_C = $$QMAKE_CC
  9. -QMAKE_LINK_C_SHLIB = $$QMAKE_CC
  10. +QMAKE_LINK_C = PISILINUX_CC
  11. +QMAKE_LINK_C_SHLIB = PISILINUX_CC
  12. -QMAKE_CXX = $${CROSS_COMPILE}g++
  13. +QMAKE_CXX = PISILINUX_CXX
  14. -QMAKE_LINK = $$QMAKE_CXX
  15. -QMAKE_LINK_SHLIB = $$QMAKE_CXX
  16. +QMAKE_LINK = PISILINUX_CXX
  17. +QMAKE_LINK_SHLIB = PISILINUX_CXX
  18. +
  19. +QMAKE_LFLAGS_RELEASE += PISILINUX_LDFLAGS
  20. QMAKE_PCH_OUTPUT_EXT = .gch
  21. diff -Nuar a/mkspecs/common/g++-unix.conf b/mkspecs/common/g++-unix.conf
  22. --- a/mkspecs/common/g++-unix.conf 2021-11-15 00:00:01.000000000 +0200
  23. +++ b/mkspecs/common/g++-unix.conf 2021-11-15 22:51:51.058450056 +0200
  24. @@ -10,5 +10,5 @@
  25. include(g++-base.conf)
  26. -QMAKE_LFLAGS_RELEASE += -Wl,-O1
  27. +QMAKE_LFLAGS_RELEASE += PISILINUX_LDFLAGS
  28. QMAKE_LFLAGS_NOUNDEF += -Wl,--no-undefined
  29. diff -Nuar a/mkspecs/common/linux.conf b/mkspecs/common/linux.conf
  30. --- a/mkspecs/common/linux.conf 2021-11-15 00:00:01.000000000 +0200
  31. +++ b/mkspecs/common/linux.conf 2021-11-15 22:52:35.802019704 +0200
  32. @@ -48,5 +48,5 @@
  33. QMAKE_NM = nm -P
  34. QMAKE_RANLIB =
  35. -QMAKE_STRIP = strip
  36. +QMAKE_STRIP =
  37. QMAKE_STRIPFLAGS_LIB += --strip-unneeded