forked from pool/sessreg
Stefan Dirsch
26cc320270
u_Pass-P-to-the-preprocessor-when-generating-filenames.patch by upstream patch U_Pass-P-to-the-preprocessor-when-generating-filenames.patch OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/sessreg?expand=0&rev=11
31 lines
983 B
Diff
31 lines
983 B
Diff
From 93f5d5abf6b214a4b36e00cd09174d24b2ed0a6d Mon Sep 17 00:00:00 2001
|
|
From: Stefan Dirsch <sndirsch@suse.de>
|
|
Date: Wed, 9 Sep 2015 23:44:06 +0200
|
|
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>
|
|
|
|
Tested-by: Matt Turner <mattst88@gmail.com>
|
|
Signed-off-by: Matt Turner <mattst88@gmail.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' > $@
|
|
|
|
--
|
|
2.6.2
|
|
|