summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/build b/build
index bf6f41e..7c851a9 100755
--- a/build
+++ b/build
@@ -6,7 +6,19 @@ nop:
@:
build:
- oh-autoconfigure
+ @# ProteanOS doesn't have Bison (needs Perl) or Flex yet, so we need to
+ @# provide pregenerated files. Many other packages just include such
+ @# files in their source archives, but libnl doesn't.
+ cp ../src.gen/pktloc_grammar.c src/lib/route/pktloc_grammar.c
+ cp ../src.gen/pktloc_grammar.h src/lib/route/pktloc_grammar.h
+ cp ../src.gen/pktloc_syntax.c src/lib/route/pktloc_syntax.c
+ cp ../src.gen/pktloc_syntax.h src/lib/route/pktloc_syntax.h
+ cp ../src.gen/ematch_grammar.c src/lib/route/cls/ematch_grammar.c
+ cp ../src.gen/ematch_grammar.h src/lib/route/cls/ematch_grammar.h
+ cp ../src.gen/ematch_syntax.c src/lib/route/cls/ematch_syntax.c
+ cp ../src.gen/ematch_syntax.h src/lib/route/cls/ematch_syntax.h
+ printf 'ac_cv_prog_FLEX=:\nac_cv_prog_YACC=:\n' >src/config.cache
+ oh-autoconfigure -- --cache-file=config.cache
oh-autobuild
touch $@