summaryrefslogtreecommitdiffstats
path: root/src/postgresql.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2014-02-09 12:29:51 (GMT)
committerTony Theodore <tonyt@logyst.com>2014-02-09 12:29:51 (GMT)
commit57fa8e075ed02e7f062dceefce8c8342d3e23e82 (patch)
tree9525c440daeda63e0993c0eb2bc2c72a526c2e2d /src/postgresql.mk
parent6cf952d7a86d8933bb2fff6f1acada1c02809556 (diff)
downloadmxe-57fa8e075ed02e7f062dceefce8c8342d3e23e82.zip
mxe-57fa8e075ed02e7f062dceefce8c8342d3e23e82.tar.gz
mxe-57fa8e075ed02e7f062dceefce8c8342d3e23e82.tar.bz2
package qt4 and dependencies: enable shared builds
Diffstat (limited to 'src/postgresql.mk')
-rw-r--r--src/postgresql.mk11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/postgresql.mk b/src/postgresql.mk
index 0a03a4e..3029e8c 100644
--- a/src/postgresql.mk
+++ b/src/postgresql.mk
@@ -24,10 +24,7 @@ define $(PKG)_BUILD
cp -Rp '$(1)' '$(1).native'
# Since we build only client libary, use bogus tzdata to satisfy configure.
cd '$(1)' && ./configure \
- --prefix='$(PREFIX)/$(TARGET)' \
- --host='$(TARGET)' \
- --build="`config.guess`" \
- --disable-shared \
+ $(MXE_CONFIGURE_OPTS) \
--disable-rpath \
--without-tcl \
--without-perl \
@@ -46,9 +43,9 @@ define $(PKG)_BUILD
--with-system-tzdata=/dev/null \
LIBS="-lsecur32 `'$(TARGET)-pkg-config' openssl --libs`" \
ac_cv_func_getaddrinfo=no
- $(MAKE) -C '$(1)'/src/interfaces/libpq -j '$(JOBS)' install haslibarule= shlib=
- $(MAKE) -C '$(1)'/src/port -j '$(JOBS)' haslibarule= shlib=
- $(MAKE) -C '$(1)'/src/bin/psql -j '$(JOBS)' install haslibarule= shlib=
+ $(MAKE) -C '$(1)'/src/interfaces/libpq -j '$(JOBS)' install $(if $(BUILD_STATIC),haslibarule= shlib=)
+ $(MAKE) -C '$(1)'/src/port -j '$(JOBS)' $(if $(BUILD_STATIC),haslibarule= shlib=)
+ $(MAKE) -C '$(1)'/src/bin/psql -j '$(JOBS)' install $(if $(BUILD_STATIC),haslibarule= shlib=)
$(INSTALL) -m644 '$(1)/src/include/pg_config.h' '$(PREFIX)/$(TARGET)/include/'
$(INSTALL) -m644 '$(1)/src/include/postgres_ext.h' '$(PREFIX)/$(TARGET)/include/'
$(INSTALL) -d '$(PREFIX)/$(TARGET)/include/libpq'