diff --git a/build/config/linux/pkg-config.py b/build/config/linux/pkg-config.py index ded24789504596..4d6e773a00d666 100755 --- a/build/config/linux/pkg-config.py +++ b/build/config/linux/pkg-config.py @@ -99,7 +99,7 @@ def GetPkgConfigPrefixToStrip(options, args): # from pkg-config's |prefix| variable. prefix = subprocess.check_output([options.pkg_config, "--variable=prefix"] + args, env=os.environ).decode('utf-8') - if prefix[-4] == '/usr': + if prefix[:4] == '/usr': return prefix[4:] return prefix