aboutsummaryrefslogtreecommitdiffstats
path: root/ext/psych/depend
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-03-31 19:29:24 +0900
committergit <svn-admin@ruby-lang.org>2022-03-31 21:34:48 +0900
commitaf2ab0dd1c899356d9ec38b052f0df0706efb8f9 (patch)
tree30575c0635a9fde722ea6cc80c78ab32ab90b7c4 /ext/psych/depend
parent834c3b35455ed50c7ad879b3e2f807eaa9b0a328 (diff)
downloadruby-af2ab0dd1c899356d9ec38b052f0df0706efb8f9.tar.gz
[ruby/psych] Make a static library from PIC object files
On some platforms, PIC and non-PIC code are incompatible and the latter cannot be used for shared objects. https://github.com/ruby/psych/commit/5652e32733
Diffstat (limited to 'ext/psych/depend')
-rw-r--r--ext/psych/depend4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/psych/depend b/ext/psych/depend
index 4947822c78..78bde9a53d 100644
--- a/ext/psych/depend
+++ b/ext/psych/depend
@@ -2,8 +2,12 @@ $(TARGET_SO): $(LIBYAML)
libyaml $(LIBYAML):
cd libyaml && $(MAKE)
+ $(AR) $(ARFLAGS) $(LIBYAML) $(LIBYAML_OBJDIR)/*.$(OBJEXT)
+ $(RANLIB) $(LIBYAML)
+
clean-so::
-cd libyaml && $(MAKE) clean
+
distclean-so::
-cd libyaml && $(MAKE) distclean
-$(Q)$(RMDIRS) libyaml/* libyaml