summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2001-05-31 21:38:42 +0000
committerManuel Novoa III <mjn3@codepoet.org>2001-05-31 21:38:42 +0000
commit63fbd32beb733cc0e959baedbc6fcacb7a225a69 (patch)
treea53285b98940489d099e2408e7fea39c34fc9c56
parentdd4d42c2b998b2b95912ac04106fb7a9b1b0a57e (diff)
Install ldd and ldconfig as appropriate.
-rw-r--r--Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3de16caf9..44eaa59be 100644
--- a/Makefile
+++ b/Makefile
@@ -154,10 +154,14 @@ install_target:
ifeq ($(DO_SHARED),shared)
install -d $(TARGET_PREFIX)$(ROOT_DIR)/lib
cp -fa lib/*.so* $(TARGET_PREFIX)$(ROOT_DIR)/lib;
-#ifeq ($(LDSO_PRESENT), $(TARGET_ARCH))
-# install -d $(TARGET_PREFIX)$(ROOT_DIR)/etc
+ifeq ($(LDSO_PRESENT), $(TARGET_ARCH))
+ install -d $(TARGET_PREFIX)$(ROOT_DIR)/etc
+ install -d $(TARGET_PREFIX)$(ROOT_DIR)/sbin
+ install -d $(TARGET_PREFIX)$(ROOT_DIR)/usr/bin
+ cp ldso/util/ldd $(TARGET_PREFIX)$(ROOT_DIR)/usr/bin
+ cp ldso/util/ldconfig $(TARGET_PREFIX)$(ROOT_DIR)/sbin
# -@if [ -x ldso/util/ldconfig ] ; then ldso/util/ldconfig; fi
-#endif
+endif
endif
# Installs development library and headers
@@ -169,6 +173,14 @@ install_dev:
cp -fa lib/*.so* $(DEVEL_PREFIX)$(ROOT_DIR)/lib;
install -d $(DEVEL_PREFIX)$(ROOT_DIR)/usr/lib
cp -fa lib/*.[ao] $(DEVEL_PREFIX)$(ROOT_DIR)/usr/lib;
+ifeq ($(LDSO_PRESENT), $(TARGET_ARCH))
+ install -d $(DEVEL_PREFIX)$(ROOT_DIR)/etc
+ install -d $(DEVEL_PREFIX)$(ROOT_DIR)/sbin
+ install -d $(DEVEL_PREFIX)$(ROOT_DIR)/usr/bin
+ cp ldso/util/ldd $(DEVEL_PREFIX)$(ROOT_DIR)/usr/bin
+ cp ldso/util/ldconfig $(DEVEL_PREFIX)$(ROOT_DIR)/sbin
+# -@if [ -x ldso/util/ldconfig ] ; then ldso/util/ldconfig; fi
+endif
install -d $(DEVEL_PREFIX)$(ROOT_DIR)/etc
install -d $(DEVEL_PREFIX)$(ROOT_DIR)/usr/include
install -d $(DEVEL_PREFIX)$(ROOT_DIR)/usr/include/bits