From 33796a964a8c605ce482959456d1ca78638340d9 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Fri, 27 Aug 2021 03:17:45 +0300 Subject: build: Add ability to build qt in depends with -stdlib=libc++ --- depends/packages/qt.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/depends/packages/qt.mk b/depends/packages/qt.mk index 9004b064d6..d90647a9fd 100644 --- a/depends/packages/qt.mk +++ b/depends/packages/qt.mk @@ -140,7 +140,11 @@ $(package)_config_opts_linux += -no-feature-vulkan $(package)_config_opts_linux += -dbus-runtime $(package)_config_opts_arm_linux += -platform linux-g++ -xplatform bitcoin-linux-g++ $(package)_config_opts_i686_linux = -xplatform linux-g++-32 +ifneq (,$(findstring -stdlib=libc++,$($(1)_cxx))) +$(package)_config_opts_x86_64_linux = -xplatform linux-clang-libc++ +else $(package)_config_opts_x86_64_linux = -xplatform linux-g++-64 +endif $(package)_config_opts_aarch64_linux = -xplatform linux-aarch64-gnu-g++ $(package)_config_opts_powerpc64_linux = -platform linux-g++ -xplatform bitcoin-linux-g++ $(package)_config_opts_powerpc64le_linux = -platform linux-g++ -xplatform bitcoin-linux-g++ -- cgit v1.2.3