SHA256
1
0
forked from pool/sessreg
sessreg/u_Pass-P-to-the-preprocessor-when-generating-filenames.patch
Stefan Dirsch 966222dd83 - u_Pass-P-to-the-preprocessor-when-generating-filenames.patch
* Pass -P to the preprocessor when generating filenames for the
    manpage.  Fixes build with GCC 5. Patch by Richard Biener
    <rguenther@suse.com>

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/sessreg?expand=0&rev=9
2015-02-23 11:19:01 +00:00

28 lines
893 B
Diff

From 86e163c72b65e634369dfc50e3951af3bd234d4d Mon Sep 17 00:00:00 2001
From: Stefan Dirsch <sndirsch@suse.de>
Date: Mon, 23 Feb 2015 11:50:12 +0100
Subject: [PATCH] Pass -P to the preprocessor when generating filenames for the
manpage.
Fixes build with GCC 5. Patch by Richard Biener <rguenther@suse.com>
---
man/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man/Makefile.am b/man/Makefile.am
index 665ace5..2e5f146 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -9,7 +9,7 @@ SUFFIXES = .$(APP_MAN_SUFFIX) .man
AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)
filenames.sed: filenames.sed.c
- $(AM_V_GEN)$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_V_GEN)$(CPP) -P $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
$(AM_CPPFLAGS) $(CPPFLAGS) $(srcdir)/filenames.sed.c | \
$(SED) -n -e '/s|__/ p' -e '/^\/__/ p' > $@
--
1.8.4.5