summaryrefslogtreecommitdiffstats
path: root/debian/patches/dont-rebuild-install.patch
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/patches/dont-rebuild-install.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/debian/patches/dont-rebuild-install.patch b/debian/patches/dont-rebuild-install.patch
new file mode 100644
index 0000000..a72b006
--- /dev/null
+++ b/debian/patches/dont-rebuild-install.patch
@@ -0,0 +1,44 @@
+--- a/Makefile
++++ b/Makefile
+@@ -556,6 +556,8 @@
+ # Remove selected header files.
+ $(RM) $(patsubst %,$(SYSROOT_INC)/%,$(MUSL_OMIT_HEADERS))
+
++ touch $@
++
+ startup_files: include_dirs
+ #
+ # Build the startup files.
+@@ -566,6 +568,8 @@
+ mkdir -p "$(SYSROOT_LIB)" && \
+ mv *.o "$(SYSROOT_LIB)"
+
++ touch $@
++
+ libc: include_dirs \
+ $(SYSROOT_LIB)/libc.a \
+ $(SYSROOT_LIB)/libc-printscan-long-double.a \
+@@ -575,6 +579,8 @@
+ $(SYSROOT_LIB)/libwasi-emulated-getpid.a \
+ $(SYSROOT_LIB)/libwasi-emulated-signal.a
+
++ touch $@
++
+ finish: startup_files libc
+ #
+ # Create empty placeholder libraries.
+@@ -586,6 +592,7 @@
+ #
+ # The build succeeded! The generated sysroot is in $(SYSROOT).
+ #
++ touch $@
+
+ # The check for defined and undefined symbols expects there to be a heap
+ # alloctor (providing malloc, calloc, free, etc). Skip this step if the build
+@@ -687,5 +694,6 @@
+ clean:
+ $(RM) -r "$(OBJDIR)"
+ $(RM) -r "$(SYSROOT)"
++ $(RM) -f include_dirs startup_files libc finish
+
+ .PHONY: default startup_files libc finish install include_dirs clean