From 89c235ca8295db1a946f3af5ba4a813e12a6c0be Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Thu, 18 Aug 2016 20:48:38 -0700 Subject: [PATCH] qmake: Also add bitcode flags to linker This fixes errors linking against Qt when built as shared libraries and with bitcode enabled (default on tvOS and watchOS). Change-Id: I3eb3bb0b9615e0bc41e43ffae8645248dbf803c6 Reviewed-by: Oswald Buddenhagen Reviewed-by: Mike Krus Reviewed-by: Jake Petroules --- mkspecs/features/uikit/bitcode.prf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mkspecs/features/uikit/bitcode.prf b/mkspecs/features/uikit/bitcode.prf index ecc6542b3c..a1dff19eb3 100644 --- a/mkspecs/features/uikit/bitcode.prf +++ b/mkspecs/features/uikit/bitcode.prf @@ -5,9 +5,11 @@ lessThan(QMAKE_XCODE_VERSION, "7.0") { QMAKE_CFLAGS += -fembed-bitcode QMAKE_CXXFLAGS += -fembed-bitcode QMAKE_OBJECTIVE_CFLAGS += -fembed-bitcode + QMAKE_LFLAGS += -fembed-bitcode } else { QMAKE_CFLAGS += -fembed-bitcode-marker QMAKE_CXXFLAGS += -fembed-bitcode-marker QMAKE_OBJECTIVE_CFLAGS += -fembed-bitcode-marker + QMAKE_LFLAGS += -fembed-bitcode-marker } }