public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowitz@sourceware.org> To: cygwin-cvs@sourceware.org, newlib-cvs@sourceware.org Subject: [newlib-cygwin] cygwin: add LFS_CFLAGS etc. to confstr/getconf Date: Tue, 16 Jan 2018 18:13:00 -0000 [thread overview] Message-ID: <20180116181306.109529.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=2cb24159fbb2a5f8a28d87413b517e6f2b242a0f commit 2cb24159fbb2a5f8a28d87413b517e6f2b242a0f Author: Yaakov Selkowitz <yselkowi@redhat.com> Date: Mon Jan 15 21:15:28 2018 -0600 cygwin: add LFS_CFLAGS etc. to confstr/getconf These are used, for instance, when cross-compiling the Linux kernel. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com> Diff: --- newlib/libc/include/sys/unistd.h | 4 ++++ winsup/cygwin/sysconf.cc | 6 +++++- winsup/utils/getconf.c | 4 ++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index 0596221..c811eb6 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -582,6 +582,10 @@ int _EXFUN(unlinkat, (int, const char *, int)); #define _CS_POSIX_V7_THREADS_LDFLAGS 19 #define _CS_V7_ENV 20 #define _CS_V6_ENV _CS_V7_ENV +#define _CS_LFS_CFLAGS 21 +#define _CS_LFS_LDFLAGS 22 +#define _CS_LFS_LIBS 23 +#define _CS_LFS_LINTFLAGS 24 #endif #ifdef __cplusplus diff --git a/winsup/cygwin/sysconf.cc b/winsup/cygwin/sysconf.cc index ecd9aeb..9563b88 100644 --- a/winsup/cygwin/sysconf.cc +++ b/winsup/cygwin/sysconf.cc @@ -719,10 +719,14 @@ static struct {ls ("")}, /* _CS_POSIX_V7_THREADS_CFLAGS */ {ls ("")}, /* _CS_POSIX_V7_THREADS_LDFLAGS */ {ls ("POSIXLY_CORRECT=1")}, /* _CS_V7_ENV */ + {ls ("")}, /* _CS_LFS_CFLAGS */ + {ls ("")}, /* _CS_LFS_LDFLAGS */ + {ls ("")}, /* _CS_LFS_LIBS */ + {ls ("")}, /* _CS_LFS_LINTFLAGS */ }; #define CS_MIN _CS_PATH -#define CS_MAX _CS_V7_ENV +#define CS_MAX _CS_LFS_LINTFLAGS extern "C" size_t confstr (int in, char *buf, size_t len) diff --git a/winsup/utils/getconf.c b/winsup/utils/getconf.c index 256bddb..5ac84ab 100644 --- a/winsup/utils/getconf.c +++ b/winsup/utils/getconf.c @@ -97,6 +97,10 @@ static const struct conf_variable conf_table[] = { "XBS5_WIDTH_RESTRICTED_ENVS", CONFSTR, _CS_XBS5_WIDTH_RESTRICTED_ENVS }, { "V7_ENV", CONFSTR, _CS_V7_ENV }, { "V6_ENV", CONFSTR, _CS_V6_ENV }, + { "LFS_CFLAGS", CONFSTR, _CS_LFS_CFLAGS }, + { "LFS_LDFLAGS", CONFSTR, _CS_LFS_LDFLAGS }, + { "LFS_LIBS", CONFSTR, _CS_LFS_LIBS }, + { "LFS_LINTFLAGS", CONFSTR, _CS_LFS_LINTFLAGS }, /* Symbolic constants from <limits.h> */ { "_POSIX_AIO_LISTIO_MAX", CONSTANT, _POSIX_AIO_LISTIO_MAX },
reply other threads:[~2018-01-16 18:13 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20180116181306.109529.qmail@sourceware.org \ --to=yselkowitz@sourceware.org \ --cc=cygwin-cvs@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).