Kaydet (Commit) c7511d98 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

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.
üst 32111a76
...@@ -61,6 +61,10 @@ BUILD_DIR=src/interfaces/libpq ...@@ -61,6 +61,10 @@ BUILD_DIR=src/interfaces/libpq
CONFIGURE_ACTION = CPPFLAGS="$(SOLARINC)" LDFLAGS="$(SOLARLIB)" ./configure --without-readline --disable-shared --with-openssl 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" .IF "$(WITH_LDAP)" == "YES"
CONFIGURE_ACTION += --with-ldap CONFIGURE_ACTION += --with-ldap
.IF "$(WITH_OPENLDAP)" != "YES" .IF "$(WITH_OPENLDAP)" != "YES"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment