Sha256: 17537c3b118593dbb9e1b95c0f3c237ddef7b468f7f7718530f5cab3567987fb

Contents?: true

Size: 317 Bytes

Versions: 4

Compression:

Stored size: 317 Bytes

Contents

#!/usr/bin/ruby

require 'mkmf'

incdir = `pg_config --includedir`.chomp rescue ENV.fetch('POSTGRES_INCLUDE', '/usr/include/postgresql')
libdir = `pg_config --libdir`.chomp     rescue ENV.fetch('POSTGRES_LIB',     '/usr/lib')

$CFLAGS  = "-I#{incdir} -Os"
$LDFLAGS = "-L#{libdir} -lpq"

create_makefile 'pg_typecast'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pg_typecast-0.1.3 ext/extconf.rb
pg_typecast-0.1.2 ext/extconf.rb
pg_typecast-0.1.1 ext/extconf.rb
pg_typecast-0.1.0 ext/extconf.rb