From bf9169d5553094d7d37c6e4eeada24a9e296fbc1 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 9 Jul 2018 01:50:12 +0000 Subject: [PATCH] common.mk: codesign ruby-runner too git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- common.mk | 1 + win32/Makefile.sub | 1 + 2 files changed, 2 insertions(+) diff --git a/common.mk b/common.mk index b3b0972432..aae11a25f6 100644 --- a/common.mk +++ b/common.mk @@ -835,6 +835,7 @@ $(PLATFORM_D): exe/$(PROGRAM): ruby-runner.c ruby-runner.h exe/.time miniruby$(EXEEXT) $(Q) $(PURIFY) $(CC) $(CFLAGS) $(CPPFLAGS) -DRUBY_INSTALL_NAME=$(@F) $(LDFLAGS) $(LIBS) $(OUTFLAG)$@ $< + $(Q) $(POSTLINK) $(Q) ./miniruby$(EXEEXT) \ -e 'prog, dest = ARGV; dest += "/ruby"' \ -e 'unless prog=="ruby"' \ diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 3c9fc07648..becc6c2057 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -323,6 +323,7 @@ MJIT_DEBUGFLAGS = $(DEBUGFLAGS) MJIT_LDSHARED = $(MJIT_CC) -LD !endif +POSTLINK = DLDFLAGS = $(LDFLAGS) -dll MAINLIBS = $(LIBS) SOLIBS =