diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2010-01-22 01:54:38 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2010-01-22 01:54:38 (GMT) |
commit | c92062f14bc494cacb664086bd34f43023258993 (patch) | |
tree | 318ba37a97c4403731f486ed7653d96c9ddbf14e /src | |
parent | 46c1a94ca33963d7cfa43d136b8f044e0dca7b2e (diff) | |
download | mxe-c92062f14bc494cacb664086bd34f43023258993.zip mxe-c92062f14bc494cacb664086bd34f43023258993.tar.gz mxe-c92062f14bc494cacb664086bd34f43023258993.tar.bz2 |
build a native pg_config in package postgresql
Diffstat (limited to 'src')
-rw-r--r-- | src/postgresql.mk | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/postgresql.mk b/src/postgresql.mk index cf30d39..f76c419 100644 --- a/src/postgresql.mk +++ b/src/postgresql.mk @@ -56,4 +56,17 @@ define $(PKG)_BUILD $(MAKE) -C '$(1)'/src/bin/psql -j '$(JOBS)' install haslibarule= shlib= $(INSTALL) -m664 '$(1)/src/include/pg_config.h' '$(PREFIX)/$(TARGET)/include/' $(INSTALL) -m664 '$(1)/src/include/postgres_ext.h' '$(PREFIX)/$(TARGET)/include/' + # Build a native pg_config. + echo '/* empty */' >'$(1)'/src/include/pg_config_os.h + gcc \ + -I'$(1)'/src/include \ + -DFRONTEND \ + '$(1)'/src/port/snprintf.c \ + '$(1)'/src/port/path.c \ + '$(1)'/src/port/strlcat.c \ + '$(1)'/src/port/strlcpy.c \ + '$(1)'/src/port/thread.c \ + '$(1)'/src/port/exec.c \ + '$(1)'/src/bin/pg_config/pg_config.c \ + -o '$(PREFIX)/$(TARGET)'/bin/pg_config endef |