Advertisement
lightshadown

custom mkfile mingw32

May 5th, 2020
728
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #
  2. # qmake configuration for mingw32-g++
  3. #
  4. # Written for MinGW-w64 / gcc 5.3 or higher
  5. #
  6. # Cross compile example for i686-w64-mingw32-g++:
  7. #   configure -xplatform win32-g++ -device-option CROSS_COMPILE=i686-w64-mingw32-
  8. #
  9.  
  10. include(../common/g++-win32.conf)
  11.  
  12. # modifications to g++-win32.conf
  13.  
  14. QMAKE_CC                = $${CROSS_COMPILE}gcc
  15. QMAKE_CFLAGS           += -fno-keep-inline-dllexport
  16. QMAKE_CFLAGS_WARN_ON   += -Wextra
  17.  
  18. QMAKE_CXX               = $${CROSS_COMPILE}mingw32-g++
  19. QMAKE_CXXFLAGS         += -fno-keep-inline-dllexport
  20. QMAKE_CXXFLAGS_WARN_ON  = $$QMAKE_CFLAGS_WARN_ON
  21.  
  22. QMAKE_LINK              = $${CROSS_COMPILE}mingw32-g++
  23. QMAKE_LINK_C            = $${CROSS_COMPILE}gcc
  24.  
  25. QMAKE_CFLAGS_LTCG       = -flto
  26. QMAKE_CXXFLAGS_LTCG     = $$QMAKE_CFLAGS_LTCG
  27. QMAKE_LFLAGS_LTCG       = $$QMAKE_CFLAGS_LTCG
  28.  
  29. load(qt_config)
Advertisement
RAW Paste Data Copied
Advertisement