diff options
author | ryoon <ryoon@pkgsrc.org> | 2013-05-11 23:56:24 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2013-05-11 23:56:24 +0000 |
commit | 29857f9cc5f985d6c11554777471ad9f14bfe6a6 (patch) | |
tree | 34c127f8d4c3082ef3c242a7dc712358a6423447 /mk | |
parent | 827dfb68d83f090393c5dbcd2ba096affb7a877a (diff) | |
download | pkgsrc-29857f9cc5f985d6c11554777471ad9f14bfe6a6.tar.gz |
On Debian/Ubuntu Linux, set system's library path as Debian's multiarch
hierarchy.
This values should be generated from output of some commands,
but I cannot find the rule.
Tested on armel and x86_64 Debian GNU/Linux environment.
The values are shown in http://wiki.debian.org/Multiarch/Tuples .
Diffstat (limited to 'mk')
-rw-r--r-- | mk/platform/Linux.mk | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/mk/platform/Linux.mk b/mk/platform/Linux.mk index 5b4ba423b9c..eb9f29c8ecc 100644 --- a/mk/platform/Linux.mk +++ b/mk/platform/Linux.mk @@ -1,4 +1,4 @@ -# $NetBSD: Linux.mk,v 1.53 2013/04/28 12:53:56 obache Exp $ +# $NetBSD: Linux.mk,v 1.54 2013/05/11 23:56:24 ryoon Exp $ # # Variable definitions for the Linux operating system. @@ -48,8 +48,25 @@ USERADD?= /usr/sbin/useradd _OPSYS_EMULDIR.linux= # empty _OPSYS_EMULDIR.linux32= # empty +# Support Debian/Ubuntu's multiarch hierarchy. +.if exists(/etc/debian_version) +.if !empty(MACHINE_ARCH:Mx86_64) +_OPSYS_SYSTEM_RPATH= /lib${LIBABISUFFIX}:/usr/lib${LIBABISUFFIX}:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu +_OPSYS_LIB_DIRS?= /lib${LIBABISUFFIX} /usr/lib${LIBABISUFFIX} /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu +.endif +.if !empty(MACHINE_ARCH:Mi386) +_OPSYS_SYSTEM_RPATH= /lib${LIBABISUFFIX}:/usr/lib${LIBABISUFFIX}:/lib/i386-linux-gnu:/usr/lib/i386-linux-gnu +_OPSYS_LIB_DIRS?= /lib${LIBABISUFFIX} /usr/lib${LIBABISUFFIX} /lib/i386-li +nux-gnu /usr/lib/i386-linux-gnu +.endif +.if !empty(MACHINE_ARCH:Marm*) +_OPSYS_SYSTEM_RPATH= /lib${LIBABISUFFIX}:/usr/lib${LIBABISUFFIX}:/lib/arm-linux-gnueabi:/usr/lib/arm-linux-gnueabi +_OPSYS_LIB_DIRS?= /lib${LIBABISUFFIX} /usr/lib${LIBABISUFFIX} /lib/arm-linux-gnueabi /usr/lib/arm-linux-gnueabi +.endif +.else _OPSYS_SYSTEM_RPATH= /lib${LIBABISUFFIX}:/usr/lib${LIBABISUFFIX} _OPSYS_LIB_DIRS?= /lib${LIBABISUFFIX} /usr/lib${LIBABISUFFIX} +.endif _OPSYS_INCLUDE_DIRS?= /usr/include .if exists(/usr/include/netinet6) || exists(/usr/include/linux/in6.h) |