From 319433dd8e74242a703d0c72a9eb14849e018e16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Tue, 8 Mar 2022 18:49:02 +0100 Subject: [PATCH] macOS: Pass multi arch flags when linking qmake Amends e8946771862bcf3efc59b8edca0b9974afff8d1a. We were building all the sources with multiple archs, but not when linking the final executable. Change-Id: I4f1110ff42bc5118b775761b6719f42b09622d40 Reviewed-by: Timur Pocheptsov --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index b6c334e9fe7..a356427631c 100755 --- a/configure +++ b/configure @@ -787,6 +787,7 @@ setBootstrapVariable() echo "EXTRA_CXXFLAGS += -MMD" >> "$mkfile" for arch in $QMAKE_APPLE_DEVICE_ARCHS; do echo "EXTRA_CXXFLAGS += -arch $arch" >> "$mkfile" + echo "EXTRA_LFLAGS += -arch $arch" >> "$mkfile" done cat "$in_mkfile" >> "$mkfile" echo "-include \$(notdir \$(DEPEND_SRC:%.cpp=%.d))" >> "$mkfile"