From 3bf0c14a2626d76b5b2d557bba280c98f0a71b95 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Thu, 18 Aug 2016 12:01:11 +0200 Subject: [PATCH] Darwin: Fix clang LTO builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit llvm-ar is not shipped as part of Xcode. Use libtool instead, just like Xcode does. Change-Id: Ic9c5e16c826c0d42979556f78d2cf6415542ef93 Reviewed-by: Morten Johan Sørvig --- mkspecs/common/clang-mac.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/mkspecs/common/clang-mac.conf b/mkspecs/common/clang-mac.conf index c616e20b6e9..274fd73d002 100644 --- a/mkspecs/common/clang-mac.conf +++ b/mkspecs/common/clang-mac.conf @@ -8,3 +8,4 @@ QMAKE_XCODE_GCC_VERSION = com.apple.compilers.llvm.clang.1_0 QMAKE_CXXFLAGS += -stdlib=libc++ QMAKE_LFLAGS += -stdlib=libc++ +QMAKE_AR_LTCG = libtool -static -o