From 54a3f2596ce96386bbfb32660d1720f85fd49324 Mon Sep 17 00:00:00 2001 From: sgourdas Date: Thu, 28 Mar 2024 09:41:50 +0200 Subject: [PATCH] Use CONFIG nostrip on WSL due to illegal strips --- kiwix-desktop.pro | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kiwix-desktop.pro b/kiwix-desktop.pro index 7e184f6..5d6c752 100644 --- a/kiwix-desktop.pro +++ b/kiwix-desktop.pro @@ -8,6 +8,9 @@ QT += core gui network QT += webenginewidgets QT += printsupport +# Avoid stripping incompatible files, due to false identification as executables, on WSL +DETECT_WSL = $$system(test -f /proc/sys/fs/binfmt_misc/WSLInterop && echo true || echo false) +equals(DETECT_WSL , "true"): CONFIG += nostrip CONFIG += link_pkgconfig greaterThan(QT_MAJOR_VERSION, 4): QT += widgets