Created
July 16, 2021 11:34
-
-
Save jperkin/1ed766138a9b0f89f743e2e5513dcf1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/mk/platform/Darwin.mk b/mk/platform/Darwin.mk | |
index 75c66f6c5dbf..a9327b4bda8e 100644 | |
--- a/mk/platform/Darwin.mk | |
+++ b/mk/platform/Darwin.mk | |
@@ -208,6 +208,15 @@ _STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U} # install(1) option to strip | |
# to avoid a test required by the libtool script that takes forever. | |
_OPSYS_MAX_CMDLEN_CMD= /usr/sbin/sysctl -n kern.argmax | |
+.if ${MACHINE_ARCH} == "aarch64" | |
+CWRAPPERS_APPEND.cc+= -arch arm64 | |
+CWRAPPERS_APPEND.cxx+= -arch arm64 | |
+CWRAPPERS_APPEND.ld+= -arch arm64 | |
+_WRAP_EXTRA_ARGS.CC+= -arch arm64 | |
+_WRAP_EXTRA_ARGS.CXX+= -arch arm64 | |
+_WRAP_EXTRA_ARGS.LD+= -arch arm64 | |
+.endif | |
+ | |
# Darwin 7.7.x has poll() in libc, but no poll.h. Try to help GNU | |
# configure packages that break because of this by pretending that | |
# there is no poll(). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment