pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/mk/platform



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Mon Apr 29 13:57:55 UTC 2024

Modified Files:
        pkgsrc/mk/platform: Darwin.mk

Log Message:
mk: Remove Darwin aarch64 cross-compile flag hack.

This isn't required any more.  When building inside a macOS chroot the
arch of mksh determines whether Rosetta is in use, and the compiler will
just generate code for that arch by default.


To generate a diff of this commit:
cvs rdiff -u -r1.139 -r1.140 pkgsrc/mk/platform/Darwin.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/platform/Darwin.mk
diff -u pkgsrc/mk/platform/Darwin.mk:1.139 pkgsrc/mk/platform/Darwin.mk:1.140
--- pkgsrc/mk/platform/Darwin.mk:1.139  Sat Apr 20 13:43:49 2024
+++ pkgsrc/mk/platform/Darwin.mk        Mon Apr 29 13:57:55 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.139 2024/04/20 13:43:49 nia Exp $
+# $NetBSD: Darwin.mk,v 1.140 2024/04/29 13:57:55 jperkin Exp $
 #
 # Variable definitions for the Darwin operating system.
 
@@ -133,19 +133,6 @@ PKG_FAIL_REASON+=  "No suitable Xcode SDK
 .endif
 
 #
-# Explicitly pass arm64 flags when building for arm64 so that everything works
-# as expected when effectively cross-compiling inside an x86_64 chroot.
-#
-.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
-
-#
 # Newer macOS releases remove library files from the file system.  The only way
 # to test them is via dlopen(), which is obviously impractical for many things.
 #



Home | Main Index | Thread Index | Old Index