Skip to content

Commit

Permalink
Add the librpc path of arch (#301)
Browse files Browse the repository at this point in the history
* add the librpc path

* []
  • Loading branch information
YingchangLiu authored Nov 13, 2023
1 parent d729968 commit e9eaa7b
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 e9eaa7b

Please sign in to comment.