Skip to content

Commit 0cd38a8

Browse files
committed
mk: add rule to create bindir
Without this make fails due to not finding a way to create the bindir target.
1 parent 0612ce2 commit 0cd38a8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mk/host.mk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,13 @@ endef
5959
# $(4) - the host triple (same as $(3))
6060
define CP_HOST_STAGE_N
6161

62-
ifneq ($(CFG_LIBDIR_RELATIVE),bin)
6362
$$(HLIB$(2)_H_$(4))/:
6463
@mkdir -p $$@
64+
65+
# Avoid redefinition warnings if libdir==bindir
66+
ifneq ($(HBIN$(2)_H_$(4)),$(HLIB$(2)_H_$(4)))
67+
$$(HBIN$(2)_H_$(4))/:
68+
@mkdir -p $$@
6569
endif
6670

6771
endef

0 commit comments

Comments
 (0)