summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavan Deolasee2016-03-01 10:16:02 +0000
committerPavan Deolasee2016-10-18 10:00:18 +0000
commitba374d3ce8b100c688c99876377af057693f4b80 (patch)
tree232f017be5f58c02c85a15b069e60207f2ed5a10
parent53db4e0dd31d89fc8bce1e4bab2512e4360b8119 (diff)
Use -P preprocessor option to avoid to inhibit generation of linemarkers in the
output from the preprocessor This ensures that grepping for the elog messages works correctly on various compilers (tested for gcc and clang)
-rw-r--r--GNUmakefile.in2
-rw-r--r--src/Makefile.global.in2
2 files changed, 3 insertions, 1 deletions
diff --git a/GNUmakefile.in b/GNUmakefile.in
index 78a915bb22..f6ab57ef1c 100644
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
@@ -50,6 +50,8 @@ clean:
rm -rf tmp_install/
# Garbage from autoconf:
@rm -rf autom4te.cache/
+# Remove MSGIDS file too
+ rm -f MSGIDS
# Important: distclean `src' last, otherwise Makefile.global
# will be gone too soon.
diff --git a/src/Makefile.global.in b/src/Makefile.global.in
index 538519fd7d..de335abf0b 100644
--- a/src/Makefile.global.in
+++ b/src/Makefile.global.in
@@ -842,7 +842,7 @@ endif # enable_coverage
genmsgids = @genmsgids@
ifeq ($(genmsgids), yes)
-PREPROCESS.c = $(CC) $(CFLAGS) $(CPPFLAGS) -E
+PREPROCESS.c = $(CC) $(CFLAGS) $(CPPFLAGS) -E -P
PGXL_MSG_FILEID := 1
PGXL_MSG_MODULE := $(shell cat $(top_builddir)/MSGMODULES | grep -E "^subdir = $(subdir):" | cut -d ':' -f 2)