diff options
| author | Itai Seggev | 2020-11-24 06:52:27 +0100 |
|---|---|---|
| committer | Philipp Stephani | 2020-12-23 17:32:19 +0100 |
| commit | 6bf22c933df642f20969b17036f8da784276f588 (patch) | |
| tree | cd39dcf1e074a1a31bae3eff5bb4243fcee71d81 /src | |
| parent | 5d46593568073b43fb0a901cbd7e019a1797cf93 (diff) | |
| download | emacs-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.in | 7 |
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@ | |||
| 337 | CHECK_STRUCTS = @CHECK_STRUCTS@ | 337 | CHECK_STRUCTS = @CHECK_STRUCTS@ |
| 338 | HAVE_PDUMPER = @HAVE_PDUMPER@ | 338 | HAVE_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. | ||
| 342 | DO_CODESIGN=$(patsubst aarch64-apple-darwin%,yes,@configuration@) | ||
| 343 | |||
| 340 | # 'make' verbosity. | 344 | # 'make' verbosity. |
| 341 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | 345 | AM_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) |
| 654 | ifeq ($(HAVE_PDUMPER),yes) | 658 | ifeq ($(HAVE_PDUMPER),yes) |
| 655 | $(AM_V_at)$(MAKE_PDUMPER_FINGERPRINT) $@.tmp | 659 | $(AM_V_at)$(MAKE_PDUMPER_FINGERPRINT) $@.tmp |
| 660 | ifeq ($(DO_CODESIGN),yes) | ||
| 661 | codesign -s - -f $@.tmp | ||
| 662 | endif | ||
| 656 | endif | 663 | endif |
| 657 | $(AM_V_at)mv $@.tmp $@ | 664 | $(AM_V_at)mv $@.tmp $@ |
| 658 | $(MKDIR_P) $(etc) | 665 | $(MKDIR_P) $(etc) |