diff options
author | Daniel Golle <daniel@makrotopia.org> | 2017-06-23 18:32:41 +0200 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2017-06-23 20:58:34 +0200 |
commit | d0c3f8b9676fda62684e5bedae61902f27e3dcfe (patch) | |
tree | b27949119604b3ca81490d05ed030bcb914602a7 /libs/postgresql/patches | |
parent | 93a16dabc427e928a67fe91fe521dcbd34574191 (diff) |
postgresql: properly handle pg_config host build
pg_config needs to be build for each target which creates some
extra complications...
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'libs/postgresql/patches')
-rw-r--r-- | libs/postgresql/patches/020-pg_config-target-cflags.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/postgresql/patches/020-pg_config-target-cflags.patch b/libs/postgresql/patches/020-pg_config-target-cflags.patch new file mode 100644 index 000000000..d3347ef8a --- /dev/null +++ b/libs/postgresql/patches/020-pg_config-target-cflags.patch @@ -0,0 +1,14 @@ +--- a/src/bin/pg_config/Makefile ++++ b/src/bin/pg_config/Makefile +@@ -22,9 +22,9 @@ STD_CPPFLAGS := $(filter-out -I$(top_src + STD_LDFLAGS := $(filter-out -L$(top_builddir)/src/port,$(LDFLAGS)) + + override CPPFLAGS += -DVAL_CONFIGURE="\"$(configure_args)\"" +-override CPPFLAGS += -DVAL_CC="\"$(CC)\"" ++override CPPFLAGS += -DVAL_CC="\"$(TARGET_CC)\"" + override CPPFLAGS += -DVAL_CPPFLAGS="\"$(STD_CPPFLAGS)\"" +-override CPPFLAGS += -DVAL_CFLAGS="\"$(CFLAGS)\"" ++override CPPFLAGS += -DVAL_CFLAGS="\"$(TARGET_CFLAGS)\"" + override CPPFLAGS += -DVAL_CFLAGS_SL="\"$(CFLAGS_SL)\"" + override CPPFLAGS += -DVAL_LDFLAGS="\"$(STD_LDFLAGS)\"" + override CPPFLAGS += -DVAL_LDFLAGS_EX="\"$(LDFLAGS_EX)\"" |