summaryrefslogtreecommitdiff
path: root/ext/psych/depend
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-03-31 19:29:24 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-03-31 19:29:24 +0900
commit5652e32733172c8dd15634859562606dd88309a3 (patch)
tree2fbc49161c8a6b61003b8c229ec06181a8c146e8 /ext/psych/depend
parentecb6b964f6e6339417908e6b4b7838f2e507ab41 (diff)
downloadpsych-5652e32733172c8dd15634859562606dd88309a3.tar.gz
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.
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 4a2ed3f..d0cb1c2 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