Remove leading spaces from LIBPATHFLAG and RPATHFLAG

Join with a space in `MakeMakefile#libpathflag` instead.
This commit is contained in:
Nobuyoshi Nakada 2024-09-29 23:07:16 +09:00
parent 9138b388ee
commit 1f6d2e77d9
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465
Notes: git 2024-09-29 14:40:10 +00:00
4 changed files with 8 additions and 7 deletions

View file

@ -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