diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-01-24 10:46:02 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-01-24 10:58:09 +0200 |
commit | c7511d9802b95a1a6e708fc61e6d6986f90c39d5 (patch) | |
tree | bd20d1f22b75c35b7bf59b9f100173fa8fa403c9 /postgresql | |
parent | 32111a7680308a0950d9a956928933b59d6c675d (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.mk | 4 |
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" |