]> git.proxmox.com Git - wasi-libc.git/blob - debian/patches/dont-rebuild-install.patch
Refresh patches
[wasi-libc.git] / debian / patches / dont-rebuild-install.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -556,6 +556,8 @@
4 # Remove selected header files.
5 $(RM) $(patsubst %,$(SYSROOT_INC)/%,$(MUSL_OMIT_HEADERS))
6
7 + touch $@
8 +
9 startup_files: include_dirs
10 #
11 # Build the startup files.
12 @@ -566,6 +568,8 @@
13 mkdir -p "$(SYSROOT_LIB)" && \
14 mv *.o "$(SYSROOT_LIB)"
15
16 + touch $@
17 +
18 libc: include_dirs \
19 $(SYSROOT_LIB)/libc.a \
20 $(SYSROOT_LIB)/libc-printscan-long-double.a \
21 @@ -575,6 +579,8 @@
22 $(SYSROOT_LIB)/libwasi-emulated-getpid.a \
23 $(SYSROOT_LIB)/libwasi-emulated-signal.a
24
25 + touch $@
26 +
27 finish: startup_files libc
28 #
29 # Create empty placeholder libraries.
30 @@ -586,6 +592,7 @@
31 #
32 # The build succeeded! The generated sysroot is in $(SYSROOT).
33 #
34 + touch $@
35
36 # The check for defined and undefined symbols expects there to be a heap
37 # alloctor (providing malloc, calloc, free, etc). Skip this step if the build
38 @@ -687,5 +694,6 @@
39 clean:
40 $(RM) -r "$(OBJDIR)"
41 $(RM) -r "$(SYSROOT)"
42 + $(RM) -f include_dirs startup_files libc finish
43
44 .PHONY: default startup_files libc finish install include_dirs clean