]> granicus.if.org Git - strace/commitdiff
scno.am: include config.h before syscallent.h
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 30 May 2017 22:44:47 +0000 (22:44 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 30 May 2017 22:44:47 +0000 (22:44 +0000)
This fixes generation of syscallent.i and subsequent scno.h files
on mips where syscallent.h checks macros defined in config.h.

* scno.am (syscallent.i): Add $(top_builddir)/config.h
to prerequisites, include it.
* NEWS: Mention this fix.

Reported-by: David Robins <dbrobins@i4031.net>
NEWS
scno.am

diff --git a/NEWS b/NEWS
index 8d0d4a5b71e3d151d0ba77a7a895b26704a4b965..7503a4f4d9cd5ab6f8c9fbd866af749f02e8a149 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ Noteworthy changes in release ?.?? (????-??-??)
   * When traced command is terminated by a blocked signal, strace unblocks
     that signal to ensure its own termination with the same signal.
   * Fixed corner cases in decoding of old sigaction syscall.
+  * Fixed build with old kernel headers on mips.
 
 Noteworthy changes in release 4.17 (2017-05-24)
 ===============================================
diff --git a/scno.am b/scno.am
index 12745f12d809c71ab730e2206d0cd4044515fed7..ee3db5974710588c32acf20b64ddb83517d31dfd 100644 (file)
--- a/scno.am
+++ b/scno.am
@@ -28,8 +28,8 @@
 SCNO_CPPFLAGS = $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
                $(ARCH_MFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS)
 
-syscallent.i: $(top_srcdir)/$(OS)/$(ARCH)/syscallent.h
-       $(CPP) -P $(SCNO_CPPFLAGS) $^ -o $@
+syscallent.i: $(top_builddir)/config.h $(top_srcdir)/$(OS)/$(ARCH)/syscallent.h
+       $(CPP) -P $(SCNO_CPPFLAGS) -include $^ -o $@
 
 digits = [[:digit:]][[:digit:]]*
 al_nums = [[:alnum:]_][[:alnum:]_]*