File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Bug fixes:
9
9
* ` rb_protect ` now returns ` Qnil ` when an error occurs.
10
10
* Fixed a race condition when using the interpolate-once (` /o ` ) modifier in
11
11
regular expressions.
12
+ * Fixed a bug in include file resolution when compiling C extensions.
12
13
13
14
New features:
14
15
Original file line number Diff line number Diff line change 113
113
expanded . merge! ( common )
114
114
mkconfig . merge! ( common )
115
115
116
- mkconfig [ 'COMPILE_C' ] = "ruby #{ cext_dir } /preprocess.rb $< | $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG) -xc - -o $@ && #{ opt } #{ opt_passes } $@ -o $@"
117
- mkconfig [ 'COMPILE_CXX' ] = "ruby #{ cext_dir } /preprocess.rb $< | $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG) -xc++ - -o $@ && #{ opt } #{ opt_passes } $@ -o $@"
116
+ mkconfig [ 'COMPILE_C' ] = "ruby #{ cext_dir } /preprocess.rb $< | $(CC) -I$(<D) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG) -xc - -o $@ && #{ opt } #{ opt_passes } $@ -o $@"
117
+ mkconfig [ 'COMPILE_CXX' ] = "ruby #{ cext_dir } /preprocess.rb $< | $(CXX) -I$(<D) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG) -xc++ - -o $@ && #{ opt } #{ opt_passes } $@ -o $@"
118
118
119
119
# From mkmf.rb: "$(CC) #{OUTFLAG}#{CONFTEST}#{$EXEEXT} $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(src) $(LIBPATH) $(LDFLAGS) $(ARCH_FLAG) $(LOCAL_LIBS) $(LIBS)"
120
120
mkconfig [ 'TRY_LINK' ] = "#{ cc } -o conftest $(INCFLAGS) $(CPPFLAGS) #{ base_cflags } #{ link_o_files } $(src) $(LIBPATH) $(LDFLAGS) $(ARCH_FLAG) $(LOCAL_LIBS) $(LIBS)"
You can’t perform that action at this time.
0 commit comments