summaryrefslogtreecommitdiff
path: root/postgresql
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-01-24 10:46:02 +0200
committerTor Lillqvist <tlillqvist@suse.com>2012-01-24 10:58:09 +0200
commitc7511d9802b95a1a6e708fc61e6d6986f90c39d5 (patch)
treebd20d1f22b75c35b7bf59b9f100173fa8fa403c9 /postgresql
parent32111a7680308a0950d9a956928933b59d6c675d (diff)
Use --build and --host when cross-compiling
Just a start, I suspect the configure script here will fail anyway when cross-compiling to Windows at least. And we surely won't even bother trying cross-compile this to non-desktop OSes.
Diffstat (limited to 'postgresql')
-rw-r--r--postgresql/makefile.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/postgresql/makefile.mk b/postgresql/makefile.mk
index 1e1c4f4a5460..9b5cb3589a9b 100644
--- a/postgresql/makefile.mk
+++ b/postgresql/makefile.mk
@@ -61,6 +61,10 @@ BUILD_DIR=src/interfaces/libpq
CONFIGURE_ACTION = CPPFLAGS="$(SOLARINC)" LDFLAGS="$(SOLARLIB)" ./configure --without-readline --disable-shared --with-openssl
+.IF "$(CROSS_COMPILING)" == "YES"
+CONFIGURE_ACTION += --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
+.ENDIF
+
.IF "$(WITH_LDAP)" == "YES"
CONFIGURE_ACTION += --with-ldap
.IF "$(WITH_OPENLDAP)" != "YES"