Lucio Andrés Illanes Albornoz eddee6
--- ruby-2.3.0/enc/Makefile.in.orig	2015-01-18 04:56:52.000000000 +0100
Lucio Andrés Illanes Albornoz eddee6
+++ ruby-2.3.0/enc/Makefile.in	2017-07-30 20:20:04.296061880 +0200
Lucio Andrés Illanes Albornoz eddee6
@@ -35,6 +35,7 @@
Lucio Andrés Illanes Albornoz eddee6
 empty =
Lucio Andrés Illanes Albornoz eddee6
 AR = @AR@
Lucio Andrés Illanes Albornoz eddee6
 CC = @CC@
Lucio Andrés Illanes Albornoz eddee6
+LD = @CC@
Lucio Andrés Illanes Albornoz eddee6
 ARFLAGS = @ARFLAGS@$(empty)
Lucio Andrés Illanes Albornoz eddee6
 RANLIB = @RANLIB@
Lucio Andrés Illanes Albornoz eddee6
 OUTFLAG = @OUTFLAG@$(empty)
Lucio Andrés Illanes Albornoz eddee6
@@ -48,7 +49,7 @@
Lucio Andrés Illanes Albornoz eddee6
 INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(top_srcdir)
Lucio Andrés Illanes Albornoz eddee6
 DEFS = @DEFS@
Lucio Andrés Illanes Albornoz eddee6
 CPPFLAGS = @CPPFLAGS@ -DONIG_ENC_REGISTER=rb_enc_register
Lucio Andrés Illanes Albornoz eddee6
-LDFLAGS = @LDFLAGS@
Lucio Andrés Illanes Albornoz eddee6
+LDFLAGS = @LDFLAGS@ -lruby-static -shared
Lucio Andrés Illanes Albornoz eddee6
 LDSHARED = @LDSHARED@
Lucio Andrés Illanes Albornoz eddee6
 ldflags  = $(LDFLAGS)
Lucio Andrés Illanes Albornoz eddee6
 dldflags = @DLDFLAGS@
Lucio Andrés Illanes Albornoz eddee6
--- ruby-2.3.0/lib/mkmf.rb.orig	2015-12-16 10:25:48.000000000 +0100
Lucio Andrés Illanes Albornoz eddee6
+++ ruby-2.3.0/lib/mkmf.rb	2017-07-30 21:44:12.418432849 +0200
Lucio Andrés Illanes Albornoz eddee6
@@ -1952,6 +1952,7 @@
Lucio Andrés Illanes Albornoz eddee6
 
Lucio Andrés Illanes Albornoz eddee6
 CC = #{CONFIG['CC']}
Lucio Andrés Illanes Albornoz eddee6
 CXX = #{CONFIG['CXX']}
Lucio Andrés Illanes Albornoz eddee6
+LD = #{CONFIG['CC']}
Lucio Andrés Illanes Albornoz eddee6
 LIBRUBY = #{CONFIG['LIBRUBY']}
Lucio Andrés Illanes Albornoz eddee6
 LIBRUBY_A = #{CONFIG['LIBRUBY_A']}
Lucio Andrés Illanes Albornoz eddee6
 LIBRUBYARG_SHARED = #$LIBRUBYARG_SHARED
Lucio Andrés Illanes Albornoz eddee6
@@ -1972,7 +1973,7 @@
Lucio Andrés Illanes Albornoz eddee6
 DEFS     = #{CONFIG['DEFS']}
Lucio Andrés Illanes Albornoz eddee6
 CPPFLAGS = #{extconf_h}#{$CPPFLAGS}
Lucio Andrés Illanes Albornoz eddee6
 CXXFLAGS = $(CCDLFLAGS) #$CXXFLAGS $(ARCH_FLAG)
Lucio Andrés Illanes Albornoz eddee6
-ldflags  = #{$LDFLAGS}
Lucio Andrés Illanes Albornoz eddee6
+ldflags  = #{$LDFLAGS} -lruby-static -shared
Lucio Andrés Illanes Albornoz eddee6
 dldflags = #{$DLDFLAGS} #{CONFIG['EXTDLDFLAGS']}
Lucio Andrés Illanes Albornoz eddee6
 ARCH_FLAG = #{$ARCH_FLAG}
Lucio Andrés Illanes Albornoz eddee6
 DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)