Advertisement
Ancurio

static_zlib.patch

Dec 21st, 2014
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.85 KB | None | 0 0
  1. --- a/common.mk
  2. +++ b/common.mk
  3. @@ -95,6 +95,7 @@ COMMONOBJS    = array.$(OBJEXT) \
  4.         vm_trace.$(OBJEXT) \
  5.         thread.$(OBJEXT) \
  6.         cont.$(OBJEXT) \
  7. +       ext/zlib/zlib.$(OBJEXT) \
  8.         $(BUILTIN_ENCOBJS) \
  9.         $(BUILTIN_TRANSOBJS) \
  10.         $(MISSING)
  11. diff --git a/ruby-2.1.5.orig/configure b/ruby-2.1.5/configure
  12. index d0f1f68..45ab642 100755
  13. --- a/configure
  14. +++ b/configure
  15. @@ -2838,6 +2838,8 @@ ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  16.  
  17.  
  18.  
  19. +LIBS="$LIBS -lz"
  20. +
  21.  { # environment section
  22.  
  23.  
  24. --- a/configure.in
  25. +++ b/configure.in
  26. @@ -31,6 +31,8 @@ rm() {
  27.  }
  28.  ])])])
  29.  
  30. +LIBS="$LIBS -lz"
  31. +
  32.  { # environment section
  33.  
  34.  AC_ARG_WITH(baseruby,
  35. --- a/inits.c
  36. +++ b/inits.c
  37. @@ -61,5 +61,6 @@ rb_call_inits(void)
  38.      CALL(Complex);
  39.      CALL(version);
  40.      CALL(vm_trace);
  41. +    CALL(zlib);
  42.  }
  43.  #undef CALL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement