mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-18 03:40:47 -08:00
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
This commit is contained in:
parent
5d46593568
commit
6bf22c933d
1 changed files with 7 additions and 0 deletions
|
|
@ -337,6 +337,10 @@ DUMPING=@DUMPING@
|
||||||
CHECK_STRUCTS = @CHECK_STRUCTS@
|
CHECK_STRUCTS = @CHECK_STRUCTS@
|
||||||
HAVE_PDUMPER = @HAVE_PDUMPER@
|
HAVE_PDUMPER = @HAVE_PDUMPER@
|
||||||
|
|
||||||
|
## ARM Macs require that all code have a valid signature. Since pump
|
||||||
|
## invalidates the signature, we must re-sign to fix it.
|
||||||
|
DO_CODESIGN=$(patsubst aarch64-apple-darwin%,yes,@configuration@)
|
||||||
|
|
||||||
# 'make' verbosity.
|
# 'make' verbosity.
|
||||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||||
|
|
||||||
|
|
@ -653,6 +657,9 @@ temacs$(EXEEXT): $(LIBXMENU) $(ALLOBJS) $(LIBEGNU_ARCHIVE) $(EMACSRES) \
|
||||||
$(ALLOBJS) $(LIBEGNU_ARCHIVE) $(W32_RES_LINK) $(LIBES)
|
$(ALLOBJS) $(LIBEGNU_ARCHIVE) $(W32_RES_LINK) $(LIBES)
|
||||||
ifeq ($(HAVE_PDUMPER),yes)
|
ifeq ($(HAVE_PDUMPER),yes)
|
||||||
$(AM_V_at)$(MAKE_PDUMPER_FINGERPRINT) $@.tmp
|
$(AM_V_at)$(MAKE_PDUMPER_FINGERPRINT) $@.tmp
|
||||||
|
ifeq ($(DO_CODESIGN),yes)
|
||||||
|
codesign -s - -f $@.tmp
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
$(AM_V_at)mv $@.tmp $@
|
$(AM_V_at)mv $@.tmp $@
|
||||||
$(MKDIR_P) $(etc)
|
$(MKDIR_P) $(etc)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue