summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 143aece36..eb3d1293c 100644
--- a/Makefile
+++ b/Makefile
@@ -204,8 +204,9 @@ ifeq ($(strip $(HAVE_SHARED)),true)
ln -fs $(DEVEL_PREFIX)/bin/readelf $(PREFIX)$(SYSTEM_DEVEL_PREFIX)/bin/$(TARGET_ARCH)-uclibc-readelf
if [ -x lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).so ] ; then \
install -m 755 lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).so $(PREFIX)$(DEVEL_PREFIX)/lib; \
- ln -s $(PREFIX)$(DEVEL_PREFIX)/lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).so \
- $(SHARED_LIB_LOADER_PATH)/$(UCLIBC_LDSO) || true; \
+ mkdir -p $(PREFIX)$(SHARED_LIB_LOADER_PATH); \
+ ln -s $(DEVEL_PREFIX)/lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).so \
+ $(PREFIX)$(SHARED_LIB_LOADER_PATH)/$(UCLIBC_LDSO) || true; \
fi;
if [ -x ldso/util/ldconfig ] ; then \
install -d $(PREFIX)$(DEVEL_PREFIX)/etc; \
@@ -233,8 +234,9 @@ ifeq ($(strip $(HAVE_SHARED)),true)
install -m 755 ldso/util/readelf $(PREFIX)/usr/bin
if [ -x lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).so ] ; then \
install -m 755 lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).so $(PREFIX)/lib; \
- ln -s $(PREFIX)/lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).so \
- $(SHARED_LIB_LOADER_PATH)/$(UCLIBC_LDSO) || true; \
+ mkdir -p $(PREFIX)$(SHARED_LIB_LOADER_PATH); \
+ ln -s $(TARGET_PREFIX)/lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).so \
+ $(PREFIX)$(SHARED_LIB_LOADER_PATH)/$(UCLIBC_LDSO) || true; \
fi;
if [ -x ldso/util/ldconfig ] ; then \
install -d $(PREFIX)/etc; \