aboutsummaryrefslogtreecommitdiff
path: root/default.mk
diff options
context:
space:
mode:
Diffstat (limited to 'default.mk')
-rw-r--r--default.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/default.mk b/default.mk
index 3bc064ac..67df14dc 100644
--- a/default.mk
+++ b/default.mk
@@ -2,7 +2,9 @@
# We shouldn't use PREFIX as we need to install into /
DESTDIR =
-LIB = lib
+_LIB_SH = l=`readlink /lib`; case "$$l" in /lib64|lib64) echo "lib64";; *) echo "lib";; esac
+_LIB != $(_LIB_SH)
+LIB = $(_LIB)$(shell $(_LIB_SH))
RC_LIB = /$(LIB)/rc
INSTALL ?= install