mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-03 22:03:58 +00:00
Run ldconfig on install at unix platforms.
This commit is contained in:
parent
40c44d2fb6
commit
a58e6a5fc9
7
wscript
7
wscript
@ -134,6 +134,13 @@ def build_library(bld, lib_str):
|
||||
bld.install_files('${PREFIX}/include', directory.find_node('src/git2.h'))
|
||||
bld.install_files('${PREFIX}/include/git2', directory.ant_glob('src/git2/*.h'))
|
||||
|
||||
# On Unix systems, let them know about installation
|
||||
if bld.env.PLATFORM == 'unix' and bld.cmd in ['install-static', 'install-shared']:
|
||||
bld.add_post_fun(call_ldconfig)
|
||||
|
||||
def call_ldconfig(bld):
|
||||
bld.exec_command('/sbin/ldconfig')
|
||||
|
||||
def grep_test_header(text, test_file):
|
||||
return '\n'.join(l for l in test_file.read().splitlines() if text in l)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user