summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2024-06-09 12:08:05 +0000
committerArthur Zamarin <arthurzam@gentoo.org>2024-06-11 08:29:51 +0300
commit50ec6920ed92ed9fc952d83698ba800faceba728 (patch)
tree5b2e9994da4085c206d034e7c955e906bc3908be /dev-lang/jwasm/files
parentdev-lang/uasm: fix makefile dependency order (diff)
downloadgentoo-50ec6920ed92ed9fc952d83698ba800faceba728.tar.gz
gentoo-50ec6920ed92ed9fc952d83698ba800faceba728.tar.bz2
gentoo-50ec6920ed92ed9fc952d83698ba800faceba728.zip
dev-lang/jwasm: fix makefile dependency order
Closes: https://bugs.gentoo.org/881519 Signed-off-by: NRK <nrk@disroot.org> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-lang/jwasm/files')
-rw-r--r--dev-lang/jwasm/files/makefile-dep-fix.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-lang/jwasm/files/makefile-dep-fix.patch b/dev-lang/jwasm/files/makefile-dep-fix.patch
new file mode 100644
index 000000000000..1b97a7c5aca4
--- /dev/null
+++ b/dev-lang/jwasm/files/makefile-dep-fix.patch
@@ -0,0 +1,22 @@
+Bug: https://bugs.gentoo.org/881519
+
+diff --git a/GccUnix.mak b/GccUnix.mak
+index 3f53d5b..8eb434e 100644
+--- a/GccUnix.mak
++++ b/GccUnix.mak
+@@ -31,13 +31,13 @@ include gccmod.inc
+
+ #.c.o:
+ # $(CC) -c $(inc_dirs) $(c_flags) -o $(OUTD)/$*.o $<
+-$(OUTD)/%.o: %.c
++$(OUTD)/%.o: %.c | $(OUTD)
+ $(CC) -c $(inc_dirs) $(c_flags) -o $(OUTD)/$*.o $<
+
+ all: $(OUTD) $(OUTD)/$(TARGET1)
+
+ $(OUTD):
+- mkdir $(OUTD)
++ mkdir -p $(OUTD)
+
+ $(OUTD)/$(TARGET1) : $(OUTD)/main.o $(proj_obj)
+ ifeq ($(DEBUG),0)