]> git.puffer.fish Git - mirror/frr.git/commitdiff
build: fix extract.pl for cross compilation
authorSerj Kalichev <serj.kalichev@gmail.com>
Fri, 7 Sep 2012 09:29:42 +0000 (13:29 +0400)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 25 Sep 2012 04:07:03 +0000 (06:07 +0200)
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>
vtysh/extract.pl.in

index 2dbaf0a10d8b7e0c9d13728b5f46a2abc45bb611..37763043a058e2d87f9310f14fd6ec2dcbe9582d 100755 (executable)
@@ -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);