Project

General

Profile

Bug #8595

Updated by sorah (Sorah Fukumori) almost 11 years ago

=begin 
 mkmf.rb's pkg_config modifies $LDFLAGS after 2.0.0 (r35605 ?) like the following: 

  # ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux] 
  p $LDFLAGS #=> "-L.    -rdynamic -Wl,-export-dynamic" 
  p pkg_config('libxml-2.0') #=> ["-I/usr/include/libxml2    ", "", "-lxml2    "] 
  p $LDFLAGS #=> "-L.    -rdynamic -Wl,-export-dynamic " 
 
  # ruby 2.0.0p247 (2013-06-27 revision 41674) 2.0.0p0 (2013-02-24) [x86_64-linux] 
  p $LDFLAGS #=> "-L. -fstack-protector -rdynamic -Wl,-export-dynamic" 
  p pkg_config('libxml-2.0') #=> ["-I/usr/include/libxml2", "", "-lxml2"] 
  p $LDFLAGS #=> "-lxml2 " 
 
 
  # 2.0.0 + my patch 
  p $LDFLAGS #=> "-L. -fstack-protector -rdynamic -Wl,-export-dynamic" 
  p pkg_config('libxml-2.0') #=> ["-I/usr/include/libxml2", "", "-lxml2"] 
  p $LDFLAGS #=> "-L. -fstack-protector -rdynamic -Wl,-export-dynamic " 

 attached patch fixes this to 1.9.3 behaviour. 

 I'll commit this if there's no problem. 

 =end 

Back