summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--install-lib-links.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/install-lib-links.mk b/install-lib-links.mk
index 09fb86a0b45..5ea73853707 100644
--- a/install-lib-links.mk
+++ b/install-lib-links.mk
@@ -7,7 +7,7 @@ all-local : .libs/install-mesa-links
.libs/install-mesa-links : $(lib_LTLIBRARIES)
$(AM_V_GEN)$(MKDIR_P) $(top_builddir)/$(LIB_DIR); \
- for f in $(lib_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*); do \
+ for f in $(join $(addsuffix .libs/,$(dir $(lib_LTLIBRARIES))),$(notdir $(lib_LTLIBRARIES:%.la=%.$(LIB_EXT)*))); do \
if test -h .libs/$$f; then \
cp -d $$f $(top_builddir)/$(LIB_DIR); \
else \