bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] [PATCH] Fix include path in pkg-config file


From: Chet Ramey
Subject: Re: [Bug-readline] [PATCH] Fix include path in pkg-config file
Date: Mon, 8 Apr 2019 14:26:11 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 4/8/19 12:06 PM, Andrea Bolognani wrote:
> The value of ${includedir} is going to be something like
> 
>   /usr/include (GNU/Linux)
>   /usr/local/include (FreeBSD ports)
>   /usr/local/Cellar/readline/8.0.0/include (macOS homebrew)
> 
> and software using readline is supposed to
> 
>   #include <readline/readline.h>
> 
> However, since Cflags in readline.pc contains
> 
>   -I${includedir}/readline
> 
> the compiler will expect to find the header in
> 
>   /usr/include/readline/readline/readline.h
> 
> which will work on GNU/Linux, where /usr/include is part of the
> default include path, but will not on other platforms.

Thanks for the report.

Chet


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]