From: "sorah (Shota Fukumori)" <sorah@...> Date: 2013-07-02T11:07:25+09:00 Subject: [ruby-core:55754] [ruby-trunk - Bug #8595] mkmf.rb pkg_config modifies $LDFLAGS Issue #8595 has been updated by sorah (Shota Fukumori). File a.patch added oops, sorry, forgot to attach the patch ---------------------------------------- Bug #8595: mkmf.rb pkg_config modifies $LDFLAGS https://bugs.ruby-lang.org/issues/8595#change-40248 Author: sorah (Shota Fukumori) Status: Open Priority: Normal Assignee: nobu (Nobuyoshi Nakada) Category: Target version: ruby -v: ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux] Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN =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) [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 -- http://bugs.ruby-lang.org/