Mercurial > mxe-octave
comparison src/postgresql.mk @ 3607:b3e27f5b5b33
postgresql: only build additional native tools in cross build
* src/postgresql.mk: only build native tools when cross building
author | John Donoghue |
---|---|
date | Mon, 09 Jun 2014 08:38:54 -0400 |
parents | 13be64f9f16d |
children | dac2f860f581 |
comparison
equal
deleted
inserted
replaced
3606:9b46971891dd | 3607:b3e27f5b5b33 |
---|---|
59 $(MAKE) -C '$(1)'/src/bin/pg_config -j '$(JOBS)' install haslibarule= DESTDIR='$(3)' | 59 $(MAKE) -C '$(1)'/src/bin/pg_config -j '$(JOBS)' install haslibarule= DESTDIR='$(3)' |
60 $(INSTALL) -m644 '$(1)/src/include/pg_config.h' '$(3)$(HOST_INCDIR)' | 60 $(INSTALL) -m644 '$(1)/src/include/pg_config.h' '$(3)$(HOST_INCDIR)' |
61 $(INSTALL) -m644 '$(1)/src/include/postgres_ext.h' '$(3)$(HOST_INCDIR)' | 61 $(INSTALL) -m644 '$(1)/src/include/postgres_ext.h' '$(3)$(HOST_INCDIR)' |
62 $(INSTALL) -d '$(3)$(HOST_INCDIR)/libpq' | 62 $(INSTALL) -d '$(3)$(HOST_INCDIR)/libpq' |
63 $(INSTALL) -m644 '$(1)'/src/include/libpq/* '$(3)$(HOST_INCDIR)/libpq/' | 63 $(INSTALL) -m644 '$(1)'/src/include/libpq/* '$(3)$(HOST_INCDIR)/libpq/' |
64 # Build a native pg_config. | 64 # Build a native pg_config (if cross build). |
65 $(SED) -i 's,-DVAL_,-D_DISABLED_VAL_,g' '$(1).native'/src/bin/pg_config/Makefile | |
66 cd '$(1).native' && ./configure \ | |
67 --prefix='$(BUILD_TOOLS_PREFIX)' \ | |
68 $(ENABLE_SHARED_OR_STATIC) \ | |
69 --disable-rpath \ | |
70 --without-tcl \ | |
71 --without-perl \ | |
72 --without-python \ | |
73 --without-gssapi \ | |
74 --without-krb5 \ | |
75 --without-pam \ | |
76 --without-ldap \ | |
77 --without-bonjour \ | |
78 --without-openssl \ | |
79 --without-readline \ | |
80 --without-ossp-uuid \ | |
81 --without-libxml \ | |
82 --without-libxslt \ | |
83 --without-zlib \ | |
84 --with-system-tzdata=/dev/null | |
85 $(MAKE) -C '$(1).native'/src/port -j '$(JOBS)' | |
86 $(MAKE) -C '$(1).native'/src/bin/pg_config -j '$(JOBS)' install DESTDIR=$(3) | |
87 if [ $(MXE_NATIVE_BUILD) = no ]; then \ | 65 if [ $(MXE_NATIVE_BUILD) = no ]; then \ |
88 $(INSTALL) -m755 '$(3)$(BUILD_TOOLS_PREFIX)/bin/pg_config' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)pg_config'; \ | 66 $(SED) -i 's,-DVAL_,-D_DISABLED_VAL_,g' '$(1).native'/src/bin/pg_config/Makefile; \ |
67 cd '$(1).native' && ./configure \ | |
68 --prefix='$(BUILD_TOOLS_PREFIX)' \ | |
69 $(ENABLE_SHARED_OR_STATIC) \ | |
70 --disable-rpath \ | |
71 --without-tcl \ | |
72 --without-perl \ | |
73 --without-python \ | |
74 --without-gssapi \ | |
75 --without-krb5 \ | |
76 --without-pam \ | |
77 --without-ldap \ | |
78 --without-bonjour \ | |
79 --without-openssl \ | |
80 --without-readline \ | |
81 --without-ossp-uuid \ | |
82 --without-libxml \ | |
83 --without-libxslt \ | |
84 --without-zlib \ | |
85 --with-system-tzdata=/dev/null; \ | |
86 $(MAKE) -C '$(1).native'/src/port -j '$(JOBS)'; \ | |
87 $(MAKE) -C '$(1).native'/src/bin/pg_config -j '$(JOBS)' install DESTDIR=$(3); \ | |
88 $(INSTALL) -m755 '$(3)$(BUILD_TOOLS_PREFIX)/bin/pg_config' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)pg_config'; \ | |
89 fi | 89 fi |
90 endef | 90 endef |