diff --git a/config/linux/pkg-config.py b/config/linux/pkg-config.py index b0381583c..deaeed3a9 100644 --- a/config/linux/pkg-config.py +++ b/config/linux/pkg-config.py @@ -44,8 +44,7 @@ def SetConfigPath(options): options on the given command line.""" sysroot = options.sysroot - if not sysroot: - sysroot = "" + assert sysroot # Compute the library path name based on the architecture. arch = options.arch @@ -122,8 +121,8 @@ if options.strip_out != None: for regexp in options.strip_out: strip_out.append(re.compile(regexp)) -SetConfigPath(options) if options.sysroot: + SetConfigPath(options) prefix = GetPkgConfigPrefixToStrip(args) else: prefix = ''