From fa2a06c6d0b4fee072f038c80cd801a234991315 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 14 Feb 2009 04:44:35 +0000 Subject: [PATCH] fix local -I order in CPPFLAGS as pointed out by Steve Franks / FreeBSD git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1434 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 4 ++++ jtag/configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 95549af6..1736971d 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -9,6 +9,10 @@ format strings, and to avoid warnings generated by such compilers: print.c:111: warning: format not a string literal and no format arguments + * configure.ac: Put our local -I paths into CPPFLAGS before anything coming + from the user as we want to make sure our local paths take precedence. + Reported by Steve Franks from a FreeBSD report. + 2009-02-11 Arnim Laeuger * src/bsdl/bsdl_sem.c: return proper error code to upper level diff --git a/jtag/configure.ac b/jtag/configure.ac index c72bb146..e4873797 100644 --- a/jtag/configure.ac +++ b/jtag/configure.ac @@ -265,7 +265,7 @@ AS_IF([test "x$with_inpout32" = xyes], [ CFLAGS="$CFLAGS -Wall" -CPPFLAGS="$CPPFLAGS -I\$(top_srcdir) -I\$(top_srcdir)/include" +CPPFLAGS="-I\$(top_srcdir) -I\$(top_srcdir)/include $CPPFLAGS" # check for lex/flex