summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-09-29 23:07:16 +0900
committerNobuyoshi Nakada <[email protected]>2024-09-29 23:07:16 +0900
commit1f6d2e77d9be9a5a829e60908d21d621f4e1ceb0 (patch)
tree09590f4981bcb0336a89cfa1060988d53f073ae9 /template
parent9138b388eea48e6f1c005a9a3071aed72799f0cc (diff)
Remove leading spaces from `LIBPATHFLAG` and `RPATHFLAG`
Join with a space in `MakeMakefile#libpathflag` instead.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11724
Diffstat (limited to 'template')
-rw-r--r--template/Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/Makefile.in b/template/Makefile.in
index 7e0a02b909..4cc0865ddc 100644
--- a/template/Makefile.in
+++ b/template/Makefile.in
@@ -360,7 +360,7 @@ install-cross: $(arch)-fake.rb $(RBCONFIG) rbconfig.rb $(arch_hdrdir)/ruby/confi
$(Q) sed '/^\$$:\.unshift/q' $(arch)-fake.rb > fake.rb
$(Q) $(BASERUBY) -p \
-e '~/^\s*CONFIG\["LDFLAGS"\]/ and' \
- -e '$$_[/(?=\s*"$$)/] = %q[ #{(CONFIG["LIBPATHFLAG"]%File.dirname(__FILE__)).strip}]' \
+ -e '$$_[/(?=\s*"$$)/] = %q[ #{CONFIG["LIBPATHFLAG"]%File.dirname(__FILE__)}]' \
rbconfig.rb > fake-rbconfig.rb
$(INSTALL_SCRIPT) fake.rb $(XRUBY_RUBYLIBDIR)/$(arch)/fake.rb
$(INSTALL_SCRIPT) fake-rbconfig.rb $(XRUBY_RUBYLIBDIR)/$(arch)/rbconfig.rb