From e9eaa7b6403846e6a5ea37174ffd667f52a99d46 Mon Sep 17 00:00:00 2001 From: kelen <58721349+YingchangLiu@users.noreply.github.com> Date: Tue, 14 Nov 2023 05:13:40 +0800 Subject: [PATCH] Add the librpc path of arch (#301) * add the librpc path * [] --- framework/configure.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/framework/configure.py b/framework/configure.py index 60fe78f37..3c3d59d3d 100644 --- a/framework/configure.py +++ b/framework/configure.py @@ -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')