Permalink
Browse files

Backport: Avoid $LDFLAGS being nil when building locally

Ruby 2.0 mkmf uses $LDFLAGS in several places and being set as nil is bad
if previously it had a correct value.
  • Loading branch information...
1 parent 111a862 commit c3e55380460c23795be0f040ba689fd7ea0e1b90 @luislavena luislavena committed Aug 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/sqlite3/extconf.rb
View
@@ -11,7 +11,7 @@
# prioritize local builds
if enable_config("local", false)
- $LDFLAGS = ENV.fetch("LDFLAGS", nil)
+ $LDFLAGS = ENV.fetch("LDFLAGS", "")
end
if RbConfig::CONFIG["host_os"] =~ /mswin/

0 comments on commit c3e5538

Please sign in to comment.