public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] configure.ac: Set -DBAD_FTS=1 also for CXXFLAGS.
@ 2020-07-17 23:56 Mark Wielaard
  2020-07-22 13:07 ` Mark Wielaard
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Wielaard @ 2020-07-17 23:56 UTC (permalink / raw)
  To: elfutils-devel; +Cc: Mark Wielaard

debuginfod.cxx checks whether or not BAD_FTS is defined.
This only matters on old 32bit arches.

Signed-off-by: Mark Wielaard <mark@klomp.org>
---
 ChangeLog    | 4 ++++
 configure.ac | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 99f50492..c6b526fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2020-07-17  Mark Wielaard  <mark@klomp.org>
+
+	* configure.ac: Set -DBAD_FTS=1 also for CXXFLAGS.
+
 2020-06-19  Mark Wielaard  <mark@klomp.org>
 
 	* Makefile.am (SUBDIRS): Always add debuginfod.
diff --git a/configure.ac b/configure.ac
index 6f04d269..e2f213ab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -261,7 +261,8 @@ dnl check it before including config.h (which might define _FILE_OFFSET_BITS).
 AC_CACHE_CHECK([whether fts.h is bad when included (with LFS)], ac_cv_bad_fts,
   [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include <fts.h>]])],
 		     ac_cv_bad_fts=no, ac_cv_bad_fts=yes)])
-AS_IF([test "x$ac_cv_bad_fts" = "xyes"], [CFLAGS="$CFLAGS -DBAD_FTS=1"])
+AS_IF([test "x$ac_cv_bad_fts" = "xyes"],
+      [CFLAGS="$CFLAGS -DBAD_FTS=1" CXXFLAGS="$CXXFLAGS -DBAD_FTS=1"])
 
 # See if we can add -D_FORTIFY_SOURCE=2. Don't do it if it is already
 # (differently) defined or if it generates warnings/errors because we
-- 
2.18.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] configure.ac: Set -DBAD_FTS=1 also for CXXFLAGS.
  2020-07-17 23:56 [PATCH] configure.ac: Set -DBAD_FTS=1 also for CXXFLAGS Mark Wielaard
@ 2020-07-22 13:07 ` Mark Wielaard
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Wielaard @ 2020-07-22 13:07 UTC (permalink / raw)
  To: elfutils-devel

On Sat, 2020-07-18 at 01:56 +0200, Mark Wielaard wrote:
> debuginfod.cxx checks whether or not BAD_FTS is defined.
> This only matters on old 32bit arches.

Pushed to master.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-22 13:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-17 23:56 [PATCH] configure.ac: Set -DBAD_FTS=1 also for CXXFLAGS Mark Wielaard
2020-07-22 13:07 ` Mark Wielaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).