Skip to content

Commit 4045978

Browse files
committed
Disable fixup_chains for old Mac versions
1 parent ce1ed02 commit 4045978

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
DIR := ${CURDIR}
22
export PATH := /usr/local/opt/qt@5/bin:$(PATH)
3-
export LDFLAGS := -L/usr/local/opt/qt@5/lib
3+
# Some users on old versions of MacOS 10.13 run into the error:
4+
# dyld: cannot load 'PathOfBuilding' (load command 0x80000034 is unknown)
5+
#
6+
# It looks like 0x80000034 is associated with the fixup_chains optimization
7+
# that improves startup time:
8+
# https://www.emergetools.com/blog/posts/iOS15LaunchTime
9+
#
10+
# For compatibility, we disable that using the flag from this thread:
11+
# https://github.com/python/cpython/issues/97524
12+
export LDFLAGS := -L/usr/local/opt/qt@5/lib -Wl,-no_fixup_chains
413
export CPPFLAGS := -I/usr/local/opt/qt@5/include
514
export PKG_CONFIG_PATH := /usr/local/opt/qt@5/lib/pkgconfig
615

0 commit comments

Comments
 (0)