From dec0079085bad2d94fc8666436fc9573e02dbeac Mon Sep 17 00:00:00 2001
From: Martin Stjernholm <mast@lysator.liu.se>
Date: Sat, 19 Mar 2011 02:42:38 +0100
Subject: [PATCH] Need to specify --api to precompile.pike.

---
 src/Makefile.in                       | 2 +-
 src/modules/common_module_makefile.in | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/Makefile.in b/src/Makefile.in
index efe73aab0c..66f94ce3ea 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -549,7 +549,7 @@ undump_modules: delete_dumped_modules
 # -Hubbe
 #
 .cmod.c: precompile.sh-stamp $(TMP_BINDIR)/precompile.pike
-	./precompile.sh --cache precompile.pike $(PRECOMPILER_ARGS) >"$@" "$<" || { rm "$@"; exit 1; }
+	./precompile.sh --cache precompile.pike --api=3 $(PRECOMPILER_ARGS) >"$@" "$<" || { rm "$@"; exit 1; }
 
 # The same applies to this.
 .symlist.c: precompile.sh-stamp $(SRCDIR)/mklibpike.pike
diff --git a/src/modules/common_module_makefile.in b/src/modules/common_module_makefile.in
index 27912fc35d..cbd29dea04 100644
--- a/src/modules/common_module_makefile.in
+++ b/src/modules/common_module_makefile.in
@@ -44,13 +44,13 @@ $(MODULE_ARCHIVES) ThisIsAPhonyTargetBlaBlaBla: force
 .SUFFIXES: .c .o .cmod .protos .m .mmod .cc .ccmod
 
 .cmod.c: $(BUILD_BASE)/precompile.sh-stamp $(TMP_BINDIR)/precompile.pike
-	$(BUILD_BASE)/precompile.sh --cache precompile.pike $(PRECOMPILER_ARGS) >"$@" "$<" || { rm "$@"; exit 1; }
+	$(BUILD_BASE)/precompile.sh --cache precompile.pike --api=3 $(PRECOMPILER_ARGS) >"$@" "$<" || { rm "$@"; exit 1; }
 
 .mmod.m: $(BUILD_BASE)/precompile.sh-stamp $(TMP_BINDIR)/precompile.pike
-	$(BUILD_BASE)/precompile.sh --cache precompile.pike $(PRECOMPILER_ARGS) >"$@" "$<" || { rm "$@"; exit 1; }
+	$(BUILD_BASE)/precompile.sh --cache precompile.pike --api=3 $(PRECOMPILER_ARGS) >"$@" "$<" || { rm "$@"; exit 1; }
 
 .ccmod.cc: $(BUILD_BASE)/precompile.sh-stamp $(TMP_BINDIR)/precompile.pike
-	$(BUILD_BASE)/precompile.sh --cache precompile.pike $(PRECOMPILER_ARGS) >"$@" "$<" || { rm "$@"; exit 1; }
+	$(BUILD_BASE)/precompile.sh --cache precompile.pike --api=3 $(PRECOMPILER_ARGS) >"$@" "$<" || { rm "$@"; exit 1; }
 
 
 # GCC dumps core on some files @ OSF1
-- 
GitLab