summaryrefslogtreecommitdiff
path: root/ext/dbm/extconf.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-13 06:41:19 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-13 06:41:19 +0000
commit3e5bff7ec18cb834f7e05ed5f973edd35f990617 (patch)
treef6d33356382ed042883511cab8234445256e9d26 /ext/dbm/extconf.rb
parent2b2ef5cfced1c06ceb9920afd6b24255510d4242 (diff)
* ext/dbm/extconf.rb: duplicate $libs and $defs when save them.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dbm/extconf.rb')
-rw-r--r--ext/dbm/extconf.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dbm/extconf.rb b/ext/dbm/extconf.rb
index f813949..302b551 100644
--- a/ext/dbm/extconf.rb
+++ b/ext/dbm/extconf.rb
@@ -29,8 +29,8 @@ headers.found = []
headers.defs = nil
def headers.db_check(db)
- old_libs = $libs
- old_defs = $defs
+ old_libs = $libs.dup
+ old_defs = $defs.dup
result = db_check2(db)
if !result
$libs = old_libs