summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 44eaa59be..7bae9fe77 100644
--- a/Makefile
+++ b/Makefile
@@ -169,8 +169,10 @@ endif
# in $(DEVEL_PREFIX)$(ROOT_DIR)/include. Probably true only if you're using
# a packaging system.
install_dev:
+ifeq ($(DO_SHARED),shared)
install -d $(DEVEL_PREFIX)$(ROOT_DIR)/lib
cp -fa lib/*.so* $(DEVEL_PREFIX)$(ROOT_DIR)/lib;
+endif
install -d $(DEVEL_PREFIX)$(ROOT_DIR)/usr/lib
cp -fa lib/*.[ao] $(DEVEL_PREFIX)$(ROOT_DIR)/usr/lib;
ifeq ($(LDSO_PRESENT), $(TARGET_ARCH))