- Use pkgconfig on linux to avoid break build on undefineds

parent a494d27b
......@@ -366,9 +366,7 @@ MacBuild {
-F$$BASEDIR/libs/lib/Frameworks \
-framework SDL
} else:LinuxBuild {
LIBS += \
-lSDL \
-lSDLmain
PKGCONFIG = sdl
} else:WindowsBuild {
INCLUDEPATH += \
$$BASEDIR/libs/lib/sdl/msvc/include \
......
......@@ -30,7 +30,7 @@ message(Qt version $$[QT_VERSION])
linux {
linux-g++ | linux-g++-64 {
message("Linux build")
CONFIG += LinuxBuild
CONFIG += LinuxBuild link_pkgconfig
} else {
error("Unsuported Linux toolchain, only GCC 32- or 64-bit is supported")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment