From ea00ca89770b2143ccae05183da3b1b5f0e36710 Mon Sep 17 00:00:00 2001 From: abma Date: Wed, 15 Sep 2021 22:21:50 +0200 Subject: [PATCH] Fixes for creating a Flatpak build, preparation for Flathub Commits squashed by Adam Honse --- .gitmodules | 3 --- OpenRGB.pro | 8 ++++++-- 2 files changed, 6 insertions(+), 5 deletions(-) delete mode 100644 .gitmodules diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index d2b990b16..000000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "razer-drivers-win32"] - path = razer-drivers-win32 - url = https://github.com/rsandoz/razer-drivers-win32 diff --git a/OpenRGB.pro b/OpenRGB.pro index 4ee9e60aa..15efc9b1e 100644 --- a/OpenRGB.pro +++ b/OpenRGB.pro @@ -1110,10 +1110,14 @@ unix:!macx { LIBS += \ -lusb-1.0 \ - -lstdc++fs \ -lmbedx509 \ - -lmbedcrypto \ -lmbedtls \ + -lmbedcrypto \ + + COMPILER_VERSION = $$system($$QMAKE_CXX " -dumpversion") + if (!versionAtLeast(COMPILER_VERSION, "9")) { + LIBS += -lstdc++fs + } #-------------------------------------------------------------------------------------------# # Determine which hidapi to use based on availability #