summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-07-07 23:33:04 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-07-08 11:31:17 +0900
commitcceb41008758c2b7cdfaf7411ad3c48dfa62e4eb (patch)
tree672accafe9c22998184e72c8b94f01dac512e227 /template
parent28ae4e46284428ccee509aaad8bf5c0d01571741 (diff)
leaked-globals: check leaked symbols in libruby.so if enable-shared
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8040
Diffstat (limited to 'template')
-rw-r--r--template/Makefile.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/template/Makefile.in b/template/Makefile.in
index 73c5852648..7ca7e89032 100644
--- a/template/Makefile.in
+++ b/template/Makefile.in
@@ -637,6 +637,10 @@ un-runnable:
$(ECHO) cannot make runnable, configure with --enable-load-relative.
$(Q) exit 1
+LIBRUBY_FOR_LEAKED_GLOBALS = $(enable_shared:no=)
yes-test-basic: $(DOT_WAIT) leaked-globals
-leaked-globals: $(COMMONOBJS) prog $(tooldir)/leaked-globals PHONY
- $(Q) $(XRUBY) $(tooldir)/leaked-globals NM="$(NM) -Pgp" SYMBOL_PREFIX=$(SYMBOL_PREFIX) PLATFORM=$(hdrdir)/ruby/$(PLATFORM_DIR).h $(srcdir)/configure.ac $(COMMONOBJS)
+leaked-globals: $(COMMONOBJS) prog $(tooldir)/leaked-globals
+ $(Q) $(XRUBY) $(tooldir)/leaked-globals \
+ SOEXT=$(SOEXT) NM="$(NM) -Pgp" SYMBOL_PREFIX=$(SYMBOL_PREFIX) \
+ PLATFORM=$(hdrdir)/ruby/$(PLATFORM_DIR).h $(srcdir)/configure.ac \
+ $(COMMONOBJS) $(LIBRUBY_FOR_LEAKED_GLOBALS:yes=$(LIBRUBY_SO))