From c7511d9802b95a1a6e708fc61e6d6986f90c39d5 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 24 Jan 2012 10:46:02 +0200 Subject: [PATCH] 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. --- postgresql/makefile.mk | 4 ++++ 1 file changed, 4 insertions(+) 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"