Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save knu/4b05519ef4fd9b69e9e86eea914ae0d7 to your computer and use it in GitHub Desktop.
Save knu/4b05519ef4fd9b69e9e86eea914ae0d7 to your computer and use it in GitHub Desktop.
From c13e8a28268dddf79a21f719fd6d6f274b5ff6a6 Mon Sep 17 00:00:00 2001
From: Akinori MUSHA <knu@idaemons.org>
Date: Thu, 15 Feb 2018 19:52:12 +0900
Subject: [PATCH] Avoid using `@` in substitution that confuses FreeBSD make
---
Makefile.in | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile.in b/Makefile.in
index a55a738fea..4324b24221 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,4 +1,5 @@
SHELL = /bin/sh
+atsign = @
NULLCMD = @NULLCMD@
n=$(NULLCMD)
ECHO1 = $(V:1=$n)
@@ -538,7 +539,7 @@ un-runnable:
mjit_config.h:
$(ECHO) making $@
@{ \
- $(Q:@=:) set -x; \
+ $(Q:$(atsign)=$(NULLCMD)) set -x; \
echo '#ifndef RUBY_MJIT_CONFIG_H'; \
echo '#define RUBY_MJIT_CONFIG_H 1'; \
\
--
2.15.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment