Permalink
Browse files

Respect DEBUG environment variable when building

  • Loading branch information...
jeremyevans committed May 21, 2012
1 parent a0eadc1 commit eb44ed1c2f893f398124129864f1d8d859d00ca8
Showing with 5 additions and 0 deletions.
  1. +4 −0 CHANGELOG
  2. +1 −0 ext/sequel_pg/extconf.rb
View
@@ -1,3 +1,7 @@
+=== HEAD
+
+* Respect DEBUG environment variable when building (jeremyevans)
+
=== 1.3.0 (2012-04-02)
* Build Windows version against PostgreSQL 9.1.1, ruby 1.8.7, and ruby 1.9.2 (previously 9.0.1, 1.8.6, and 1.9.1) (jeremyevans)
View
@@ -1,4 +1,5 @@
require 'mkmf'
+$CFLAGS << " -O0 -g -ggdb" if ENV['DEBUG']
$CFLAGS << " -Wall " unless RUBY_PLATFORM =~ /solaris/
dir_config('pg', ENV["POSTGRES_INCLUDE"] || (IO.popen("pg_config --includedir").readline.chomp rescue nil),
ENV["POSTGRES_LIB"] || (IO.popen("pg_config --libdir").readline.chomp rescue nil))

0 comments on commit eb44ed1

Please sign in to comment.