diff options
author | sbd <sbd@pkgsrc.org> | 2012-01-17 22:19:22 +0000 |
---|---|---|
committer | sbd <sbd@pkgsrc.org> | 2012-01-17 22:19:22 +0000 |
commit | 93410cd9ebe60b8422367d672748a21101fa3c86 (patch) | |
tree | 5da3ac51584e47f9be367c3be5764a9fc47cfdb9 /mk | |
parent | 1e38404e660373254bf5fb3d2cde2d605e6b94bf (diff) | |
download | pkgsrc-93410cd9ebe60b8422367d672748a21101fa3c86.tar.gz |
On Linux-x86_64 system transform /usr/lib/../lib* to /usr/lib* so that
the buildlink rules work properly.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/buildlink3/bsd.buildlink3.mk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mk/buildlink3/bsd.buildlink3.mk b/mk/buildlink3/bsd.buildlink3.mk index 6d04fcc5f29..9ed34c98ce2 100644 --- a/mk/buildlink3/bsd.buildlink3.mk +++ b/mk/buildlink3/bsd.buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.buildlink3.mk,v 1.209 2010/12/03 18:59:20 abs Exp $ +# $NetBSD: bsd.buildlink3.mk,v 1.210 2012/01/17 22:19:22 sbd Exp $ # # Copyright (c) 2004 The NetBSD Foundation, Inc. # All rights reserved. @@ -920,6 +920,16 @@ _BLNK_TRANSFORM+= strip-slashdot: _BLNK_TRANSFORM+= mangle:${_dir_}:${_BLNK_MANGLE_DIR.${_dir_}} .endfor # +# Transform /usr/lib/../lib* to /usr/lib* so the following transformation +# work. (added by libtool on multlib Linux systems). +# +.if !empty(MACHINE_PLATFORM:MLinux-*-x86_64) +_BLNK_TRANSFORM+= mangle:/usr/lib/../lib64:/usr/lib64 +_BLNK_TRANSFORM+= mangle:/usr/lib/../lib:/usr/lib +_BLNK_TRANSFORM+= mangle:/usr/lib/../lib32:/usr/lib32 +_BLNK_TRANSFORM+= mangle:/usr/lib/../libx32:/usr/libx32 +.endif +# # Protect -I/usr/include/* and -L/usr/lib/* from transformations (these # aren't part of the normal header or library search paths). # |