compat-ruby-postgres/extconf.rb in postgres-0.7.9.2007.12.12 vs compat-ruby-postgres/extconf.rb in postgres-0.7.9.2007.12.22

- old
+ new

@@ -18,16 +18,16 @@ end dir_config('pgsql', config_value('include'), config_value('lib')) required_libraries = [] -desired_functions = %w(PQsetClientEncoding pg_encoding_to_char PQfreemem) +desired_functions = %w(PQsetClientEncoding pg_encoding_to_char PQfreemem PQserverVersion) compat_functions = %w(PQescapeString PQexecParams) if have_build_env required_libraries.each(&method(:have_library)) desired_functions.each(&method(:have_func)) - $objs = ['postgres.o'] if compat_functions.all?(&method(:have_func)) + $objs = ['postgres.o','libpq-compat.o'] if compat_functions.all?(&method(:have_func)) $CFLAGS << ' -Wall ' create_makefile("postgres") else puts 'Could not find PostgreSQL build environment (libraries & headers): Makefile not created' end