From b9346faf233fb3ce9afb6229a595a7b4334f7ed1 Mon Sep 17 00:00:00 2001 From: Sebastien Marie Date: Wed, 21 Feb 2024 09:49:58 +0100 Subject: [PATCH] posix compatibility: avoid grep GNU extension (#53400) the `.\+` meta-character is a GNU extension. prefer to use the POSIX equivalent `..*` to work with `grep` on wider platforms. it is part of on-going work to port julia to OpenBSD. --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 5f58c7fa576276..ce81ff03cdd707 100644 --- a/src/Makefile +++ b/src/Makefile @@ -230,7 +230,7 @@ $(BUILDDIR)/jl_internal_funcs.inc: $(SRCDIR)/jl_exported_funcs.inc # to have a `ijl_` prefix instead of `jl_`, to denote that they are coming from `libjulia-internal`. This avoids # potential confusion with debugging tools, when inspecting a process that has both `libjulia` and `libjulia-internal` # loaded at the same time. - grep 'XX(.\+)' $< | sed -E 's/.*XX\((.+)\).*/#define \1 i\1/g' >$@ + grep 'XX(..*)' $< | sed -E 's/.*XX\((.+)\).*/#define \1 i\1/g' >$@ # source file rules $(BUILDDIR)/%.o: $(SRCDIR)/%.c $(HEADERS) | $(BUILDDIR)