aboutsummaryrefslogtreecommitdiff
path: root/malloc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'malloc/Makefile')
-rw-r--r--malloc/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/malloc/Makefile b/malloc/Makefile
index 521037a51a..53251ba58a 100644
--- a/malloc/Makefile
+++ b/malloc/Makefile
@@ -64,7 +64,8 @@ include ../Rules
$(objpfx)libmcheck.a: $(objpfx)mcheck-init.o
-rm -f $@
- $(LN_S) $< $@
+ $(patsubst %/,cd % &&,$(objpfx)) \
+ $(LN_S) $(<F) $(@F)
lib: $(objpfx)libmcheck.a