| Index: build/config/linux/pkg-config.py | 
| diff --git a/build/config/linux/pkg-config.py b/build/config/linux/pkg-config.py | 
| index a4f4703bd3814ed971845042c5eda0e8917f5913..fadcc0bbcf9dfbabd92e24475ecd2d7ed91b3ebd 100644 | 
| --- a/build/config/linux/pkg-config.py | 
| +++ b/build/config/linux/pkg-config.py | 
| @@ -112,6 +112,7 @@ parser.add_option('-s', action='store', dest='sysroot', type='string') | 
| parser.add_option('-a', action='store', dest='arch', type='string') | 
| parser.add_option('--atleast-version', action='store', | 
| dest='atleast_version', type='string') | 
| +parser.add_option('--libdir', action='store_true', dest='libdir') | 
| (options, args) = parser.parse_args() | 
|  | 
| # Make a list of regular expressions to strip out. | 
| @@ -138,6 +139,18 @@ if options.atleast_version: | 
| print "false" | 
| sys.exit(0) | 
|  | 
| +if options.libdir: | 
| +  try: | 
| +    libdir = subprocess.check_output([options.pkg_config, | 
| +                                      "--variable=libdir"] + | 
| +                                     args, | 
| +                                     env=os.environ) | 
| +  except: | 
| +    print "Error from pkg-config." | 
| +    sys.exit(1) | 
| +  sys.stdout.write(libdir.strip()) | 
| +  sys.exit(0) | 
| + | 
| try: | 
| flag_string = subprocess.check_output( | 
| [ options.pkg_config, "--cflags", "--libs-only-l", "--libs-only-L" ] + | 
|  |