aboutsummaryrefslogtreecommitdiff
path: root/mk/sys.mk
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-04 20:44:39 +0000
committerRoy Marples <roy@marples.name>2008-03-04 20:44:39 +0000
commit0e147427837fbb7e3d15f19507f64bed3ea5d83c (patch)
treea48f44a82db4d95dd688b37f649a063ba5e0e480 /mk/sys.mk
parent5ebefb7794a35cb577271575af67363f150d7c7d (diff)
Fix multilib.
Diffstat (limited to 'mk/sys.mk')
-rw-r--r--mk/sys.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/sys.mk b/mk/sys.mk
index 2e62b652..6c132bb3 100644
--- a/mk/sys.mk
+++ b/mk/sys.mk
@@ -21,7 +21,9 @@ BINMODE?= 0755
INCDIR?= ${UPREFIX}/include
INCMODE?= 0444
-LIBNAME?= lib
+_LIBNAME_SH= case `readlink /lib` in /lib64|lib64) echo "lib64";; *) echo "lib";; esac
+_LIBNAME!= ${_LIBNAME_SH}
+LIBNAME?= ${_LIBNAME}$(shell ${_LIBNAME_SH})
LIBDIR?= ${UPREFIX}/${LIBNAME}
LIBMODE?= 0444
SHLIBDIR?= ${PREFIX}/${LIBNAME}