[Libclc-dev] [PATCH 1/1] Allow $PREFIX relative paths in pkgconfigdir

Tom Stellard tom at stellard.net
Mon Dec 16 15:47:36 PST 2013


On Mon, Dec 16, 2013 at 06:36:50PM -0500, Jan Vesely wrote:
> Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>

Does this change the default behavior at all?  Also, can you give an
example of something you can do with this patch that you couldn't do
before.

-Tom

> ---
>  configure.py | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/configure.py b/configure.py
> index 1c6929f..598bd51 100755
> --- a/configure.py
> +++ b/configure.py
> @@ -51,7 +51,10 @@ if not includedir:
>  
>  pkgconfigdir = options.pkgconfigdir
>  if not pkgconfigdir:
> -  pkgconfigdir = os.path.join(prefix, 'share/pkgconfig')
> +  pkconfigdir = 'share/pkgconfig'
> +
> +if not pkgconfigdir[0] == '/':
> +  pkgconfigdir = os.path.join(prefix, pkgconfigdir)
>  
>  def llvm_config(args):
>    try:
> -- 
> 1.8.3.1
> 
> 
> _______________________________________________
> Libclc-dev mailing list
> Libclc-dev at pcc.me.uk
> http://www.pcc.me.uk/cgi-bin/mailman/listinfo/libclc-dev




More information about the Libclc-dev mailing list