diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2011-09-09 11:17:54 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2011-11-17 21:15:28 +0100 |
commit | 1dd615414580f20d5e7a9e0d3144602484dbc24f (patch) | |
tree | ce15b3133aacc47749abc776d38f56ffd57742d2 /connectivity | |
parent | 969bf70f1bbe62d61fcaa87236b5d0f5e03a4a52 (diff) |
Call pg_config only once for each value
as opposed to for each value for each compilation command
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/postgresql/makefile.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/drivers/postgresql/makefile.mk b/connectivity/source/drivers/postgresql/makefile.mk index 23092afec2fe..fa27c26e0f19 100644 --- a/connectivity/source/drivers/postgresql/makefile.mk +++ b/connectivity/source/drivers/postgresql/makefile.mk @@ -84,15 +84,15 @@ PQ_SDBC_MINOR=8 PQ_SDBC_MICRO=0 PQ_SDBC_VERSION=$(PQ_SDBC_MAJOR).$(PQ_SDBC_MINOR).$(PQ_SDBC_MICRO) .IF "$(SYSTEM_POSTGRESQL)" == "YES" -POSTGRESQL_MAJOR=`pg_config --version | awk '{ print $$2 }' | cut -d. -f1` -POSTGRESQL_MINOR=`pg_config --version | awk '{ print $$2 }' | cut -d. -f2` -POSTGRESQL_MICRO=`pg_config --version | awk '{ print $$2 }' | cut -d. -f3` +POSTGRESQL_MAJOR:=$(shell pg_config --version | awk '{ print $$2 }' | cut -d. -f1) +POSTGRESQL_MINOR:=$(shell pg_config --version | awk '{ print $$2 }' | cut -d. -f2) +POSTGRESQL_MICRO:=$(shell pg_config --version | awk '{ print $$2 }' | cut -d. -f3) .ENDIF .IF "$(SYSTEM_POSTGRESQL)" != "YES" POSTGRESQL_INCLUDES=-I$(SOLARINCDIR)$/postgresql .ELSE -POSTGRESQL_INCLUDES=-I`pg_config --includedir` +POSTGRESQL_INCLUDES:=-I$(shell pg_config --includedir) .ENDIF CFLAGS+=$(POSTGRESQL_INCLUDES) \ |