1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

waf: support @LIB_RPATH@ in pc files

this will be used to get the needed -Wl,-rpath options into our pc
files

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andrew Tridgell 2010-12-08 18:47:39 +11:00
parent 2079a6d110
commit 92961d2828

View File

@ -54,10 +54,14 @@ def PKG_CONFIG_FILES(bld, pc_files, vnum=None):
source=f+'.in',
target=f)
t.vars = []
for v in [ 'PREFIX', 'EXEC_PREFIX' ]:
t.vars.append(t.env[v])
if t.env.RPATH_ON_INSTALL:
t.env.LIB_RPATH = t.env.RPATH_ST % t.env.LIBDIR
else:
t.env.LIB_RPATH = ''
if vnum:
t.env.PACKAGE_VERSION = vnum
for v in [ 'PREFIX', 'EXEC_PREFIX', 'LIB_RPATH' ]:
t.vars.append(t.env[v])
bld.INSTALL_FILES(dest, f, flat=True, destname=base)
Build.BuildContext.PKG_CONFIG_FILES = PKG_CONFIG_FILES