[Bug,general/33103] elfutils fails in-tree build due to ./stack binary #included via <stack>
Commit Message
https://sourceware.org/bugzilla/show_bug.cgi?id=33103
--- Comment #3 from Mark Wielaard <mark at klomp dot org> ---
I don't understand why this is only a problem with srcdir == builddir.
But maybe we can extend the original solution to use -iquote for srcdir. And
only have -I for lib and the top builddir (for <config.h>)?
Does the following work for you?
You are on the CC list for the bug.
@@ -31,7 +31,7 @@
##
DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-AM_CPPFLAGS = -iquote . -I$(srcdir) -I$(top_srcdir)/lib -I..
+AM_CPPFLAGS = -iquote. -iquote$(srcdir) -I$(top_srcdir)/lib
-I$(abs_top_builddir)
# Drop the 'u' flag that automake adds by default. It is incompatible
# with deterministic archives.
@@ -32,8 +32,8 @@
#include <stdbool.h>
#include <pthread.h>
-#include <libdw.h>
-#include <dwarf.h>
+#include "libdw.h"
+#include "dwarf.h"
#include "eu-search.h"
--
You are receiving this mail because: