diff options
author | Serj Kalichev <serj.kalichev@gmail.com> | 2012-09-07 13:29:42 +0400 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2012-09-25 06:07:03 +0200 |
commit | ed6e297972318a0070ad4d973401fbc6e0def558 (patch) | |
tree | cc544ec6f62a22cb2281e7665a39d469b377cc63 /vtysh | |
parent | bb2315f2878da685fae094aece13409667d21f97 (diff) |
build: fix extract.pl for cross compilation
extract.pl should invoke the C preprocessor for the target system, not the
host.
* vtysh/extract.pl.in: use @CPP@ to get target cpp
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'vtysh')
-rwxr-xr-x | vtysh/extract.pl.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vtysh/extract.pl.in b/vtysh/extract.pl.in index 2dbaf0a1..37763043 100755 --- a/vtysh/extract.pl.in +++ b/vtysh/extract.pl.in @@ -63,7 +63,7 @@ $ignore{'"show history"'} = "ignore"; foreach (@ARGV) { $file = $_; - open (FH, "cpp -DHAVE_CONFIG_H -DVTYSH_EXTRACT_PL -DHAVE_IPV6 -I@top_builddir@ -I@srcdir@/ -I@srcdir@/.. -I@top_srcdir@/lib -I@top_builddir@/lib -I@top_srcdir@/isisd/topology @CPPFLAGS@ $file |"); + open (FH, "@CPP@ -DHAVE_CONFIG_H -DVTYSH_EXTRACT_PL -DHAVE_IPV6 -I@top_builddir@ -I@srcdir@/ -I@srcdir@/.. -I@top_srcdir@/lib -I@top_builddir@/lib -I@top_srcdir@/isisd/topology @CPPFLAGS@ $file |"); local $/; undef $/; $line = <FH>; close (FH); |