From 56530b541b2601d2d8bfc4e53796faaba414ae2f Mon Sep 17 00:00:00 2001 From: k0kubun Date: Sun, 4 Feb 2018 09:48:44 +0000 Subject: [PATCH] Makefile.in: use CFLAGS_NO_ARCH for cpp Using $(CFLAGS) breaks the build when multiple `-arch` options are given. Then we should omit arch flags. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 0ae948703d..128dffa597 100644 --- a/Makefile.in +++ b/Makefile.in @@ -409,7 +409,7 @@ probes.@OBJEXT@: $(srcdir)/probes.d $(DTRACE_REBUILD:yes=probes.stamp) rb_mjit_header.h: PHONY probes.h $(ECHO) building $@ - $(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -DMJIT_HEADER $(srcdir)/vm.c $(COUTFLAG) $@.new -E -P -dD + $(Q) $(CC) $(CFLAGS_NO_ARCH) $(XCFLAGS) $(CPPFLAGS) -DMJIT_HEADER $(srcdir)/vm.c $(COUTFLAG) $@.new -E -P -dD $(Q) $(IFCHANGE) $@ $@.new # DTrace static library hacks described here: