--- /dev/null
+No point in adding qt-related things to the compile line unless the qt debugger is wanted
+
+--- scripts/src/osd/sdl_cfg.lua.orig
++++ scripts/src/osd/sdl_cfg.lua
+@@ -115,14 +115,16 @@
+ configuration { }\r
+ \r
+ elseif _OPTIONS["targetos"]=="linux" then\r
+- if _OPTIONS["QT_HOME"]~=nil then\r
+- buildoptions {\r
+- "-I" .. backtick(_OPTIONS["QT_HOME"] .. "/bin/qmake -query QT_INSTALL_HEADERS"),\r
+- }\r
+- else\r
+- buildoptions {\r
+- backtick("pkg-config --cflags Qt5Widgets"),\r
+- }\r
++ if _OPTIONS["USE_QTDEBUG"]=="1" then\r
++ if _OPTIONS["QT_HOME"]~=nil then\r
++ buildoptions {\r
++ "-I" .. backtick(_OPTIONS["QT_HOME"] .. "/bin/qmake -query QT_INSTALL_HEADERS"),\r
++ }\r
++ else\r
++ buildoptions {\r
++ backtick("pkg-config --cflags Qt5Widgets"),\r
++ }\r
++ end\r
+ end\r
+ elseif _OPTIONS["targetos"]=="macosx" then\r
+ defines {\r