bug-ncurses
[Top][All Lists]
Advanced

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

Re: Missing -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 in pkg-config files in


From: Thomas Dickey
Subject: Re: Missing -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 in pkg-config files in Clang + LLVM environment?
Date: Thu, 8 Sep 2022 19:54:40 -0400
User-agent: Mutt/1.10.1 (2018-07-13)

On Fri, Sep 09, 2022 at 12:26:08AM +0100, Sam James wrote:
> Originally reported to pinentry at https://dev.gnupg.org/T6193.
> 
> It looks like -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600
> is missing from the .pc files in some environments which
> leads to a pinentry build failure with Clang 15.

_DEFAULT_SOURCE is a (documented) feature of GNU C library.
The configure script checks for this, and adds it to the flags
used for building (including the test-programs) and passes that
into the ".pc" file.

musl doesn't have any noticeable documentation.
see - https://musl.libc.org/manual.html (one page)

fwiw, in that one page, 
https://www.musl-libc.org/doc/1.0.0/manual.html

_DEFAULT_SOURCE is not mentioned.
 
> This is on a musl + Clang system (details below for how
> to reproduce).

none of the systems that I develop on have musl.
(you're free to submit a patch, if you use musl).
 
-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

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