aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-23 22:43:45 +0000
committerRoy Marples <roy@marples.name>2007-11-23 22:43:45 +0000
commita618935584d1a5b9c55363f17e2c491febd46d5f (patch)
tree92d4c8cb900d8baa051bb58247505bf4083b0203
parent85fe5ae12d82690ad0e3479533cbddb7387528f4 (diff)
Try and work out multilib
-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