summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-08-13 22:20:28 +0000
committerEric Andersen <andersen@codepoet.org>2001-08-13 22:20:28 +0000
commit3c735763c230948708f6ab465aed53328f9308fd (patch)
tree840d37957fbc5dd7fd5b0b77c10c93302dd6de82 /Makefile
parentc784f7652f07e0488d373ad0b1bfd26cf95a8178 (diff)
A few more (final?) cleanups for the installer behavior. I now think
things are working perfectly (perhaps I shouln't think so much)
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; \