Always include pg_config --libdir as lib directory when building extended test binary
-LIBPQ = $(shell pg_config --includedir)
+LIBPQ_INCLUDE = $(shell pg_config --includedir)
+LIBPQ_LIB = $(shell pg_config --libdir)
.PHONY: check
all: extended
extended:
- $(CC) extended.c -I$(LIBPQ) -lpq -o $@
+ $(CC) extended.c -I$(LIBPQ_INCLUDE) -L$(LIBPQ_LIB) -lpq -o $@
test: all
py.test -v
