summaryrefslogtreecommitdiffhomepage
path: root/patches/ruby-2.3.0.local.patch
blob: c0ff92777b98c1aa7669388f2b6c67b48ed07763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- ruby-2.3.0/enc/Makefile.in.orig	2015-01-18 04:56:52.000000000 +0100
+++ ruby-2.3.0/enc/Makefile.in	2017-07-30 20:20:04.296061880 +0200
@@ -35,6 +35,7 @@
 empty =
 AR = @AR@
 CC = @CC@
+LD = @CC@
 ARFLAGS = @ARFLAGS@$(empty)
 RANLIB = @RANLIB@
 OUTFLAG = @OUTFLAG@$(empty)
@@ -48,7 +49,7 @@
 INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(top_srcdir)
 DEFS = @DEFS@
 CPPFLAGS = @CPPFLAGS@ -DONIG_ENC_REGISTER=rb_enc_register
-LDFLAGS = @LDFLAGS@
+LDFLAGS = @LDFLAGS@ -lruby-static -shared
 LDSHARED = @LDSHARED@
 ldflags  = $(LDFLAGS)
 dldflags = @DLDFLAGS@
--- ruby-2.3.0/lib/mkmf.rb.orig	2015-12-16 10:25:48.000000000 +0100
+++ ruby-2.3.0/lib/mkmf.rb	2017-07-30 21:44:12.418432849 +0200
@@ -1952,6 +1952,7 @@
 
 CC = #{CONFIG['CC']}
 CXX = #{CONFIG['CXX']}
+LD = #{CONFIG['CC']}
 LIBRUBY = #{CONFIG['LIBRUBY']}
 LIBRUBY_A = #{CONFIG['LIBRUBY_A']}
 LIBRUBYARG_SHARED = #$LIBRUBYARG_SHARED
@@ -1972,7 +1973,7 @@
 DEFS     = #{CONFIG['DEFS']}
 CPPFLAGS = #{extconf_h}#{$CPPFLAGS}
 CXXFLAGS = $(CCDLFLAGS) #$CXXFLAGS $(ARCH_FLAG)
-ldflags  = #{$LDFLAGS}
+ldflags  = #{$LDFLAGS} -lruby-static -shared
 dldflags = #{$DLDFLAGS} #{CONFIG['EXTDLDFLAGS']}
 ARCH_FLAG = #{$ARCH_FLAG}
 DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)