Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/ahay/src
Browse files Browse the repository at this point in the history
  • Loading branch information
sfomel committed Jan 17, 2024
2 parents fe82531 + e9eaa7b commit 83db84e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions framework/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,14 @@ def rpc(context):
if plat['OS'] in ('sunos', 'hpux'):
LIBS.append('nsl')
LIBS.append('socket')
elif plat['OS'] == 'cygwin' or \
(plat['distro'] == 'centos' and int(plat['version'][0]) >= 8) or \
plat['distro'] == 'fedora' or \
(plat['distro'] == 'ubuntu' and int(plat['version'][:2]) >= 20):
CPPPATH.append('/usr/include/tirpc')
elif (
plat['OS'] == 'cygwin'
or (plat['distro'] == 'centos' and int(plat['version'][0]) >= 8)
or plat['distro'] == 'fedora'
or (plat['distro'] == 'ubuntu' and int(plat['version'][:2]) >= 20)
or plat['distro'] == 'arch'
):
context.env['CPPPATH'] = path_get(context,'CPPPATH','/usr/include/tirpc')
LIBS.append('tirpc')
elif plat['OS'] == 'interix':
LIBS.append('rpclib')
Expand Down

0 comments on commit 83db84e

Please sign in to comment.