aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorItai Seggev2020-11-24 06:52:27 +0100
committerPhilipp Stephani2020-12-23 17:32:19 +0100
commit6bf22c933df642f20969b17036f8da784276f588 (patch)
treecd39dcf1e074a1a31bae3eff5bb4243fcee71d81 /src
parent5d46593568073b43fb0a901cbd7e019a1797cf93 (diff)
downloademacs-6bf22c933df642f20969b17036f8da784276f588.tar.gz
emacs-6bf22c933df642f20969b17036f8da784276f588.zip
Codesign the executable on recene MacOS systems
* src/Makefile.in (temacs$(EXEEXT)): Codesign the executable on recent (ARM) MacOS systems (bug#43878). Without this, building Emacs fails. Copyright-paperwork-exempt: yes
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index ab63b926272..cfd322a41fa 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -337,6 +337,10 @@ DUMPING=@DUMPING@
337CHECK_STRUCTS = @CHECK_STRUCTS@ 337CHECK_STRUCTS = @CHECK_STRUCTS@
338HAVE_PDUMPER = @HAVE_PDUMPER@ 338HAVE_PDUMPER = @HAVE_PDUMPER@
339 339
340## ARM Macs require that all code have a valid signature. Since pump
341## invalidates the signature, we must re-sign to fix it.
342DO_CODESIGN=$(patsubst aarch64-apple-darwin%,yes,@configuration@)
343
340# 'make' verbosity. 344# 'make' verbosity.
341AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ 345AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
342 346
@@ -653,6 +657,9 @@ temacs$(EXEEXT): $(LIBXMENU) $(ALLOBJS) $(LIBEGNU_ARCHIVE) $(EMACSRES) \
653 $(ALLOBJS) $(LIBEGNU_ARCHIVE) $(W32_RES_LINK) $(LIBES) 657 $(ALLOBJS) $(LIBEGNU_ARCHIVE) $(W32_RES_LINK) $(LIBES)
654ifeq ($(HAVE_PDUMPER),yes) 658ifeq ($(HAVE_PDUMPER),yes)
655 $(AM_V_at)$(MAKE_PDUMPER_FINGERPRINT) $@.tmp 659 $(AM_V_at)$(MAKE_PDUMPER_FINGERPRINT) $@.tmp
660ifeq ($(DO_CODESIGN),yes)
661 codesign -s - -f $@.tmp
662endif
656endif 663endif
657 $(AM_V_at)mv $@.tmp $@ 664 $(AM_V_at)mv $@.tmp $@
658 $(MKDIR_P) $(etc) 665 $(MKDIR_P) $(etc)