From: Alejandro Colomar <alx@kernel.org>
To: Jeffrey Walton <noloader@gmail.com>
Cc: musl@lists.openwall.com
Subject: Re: [musl] sgetspent(3) on musl
Date: Fri, 29 Nov 2024 13:29:02 +0100 [thread overview]
Message-ID: <20241129122902.pbtifxnc6quivf3g@devuan> (raw)
In-Reply-To: <CAH8yC8=Ajk+S1nDXhnh1B9c3eotdwqLKVR1yL_7Hww6oA=YYYQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]
Hi Jeffrey,
On Fri, Nov 29, 2024 at 01:35:06AM -0500, Jeffrey Walton wrote:
> On Fri, Nov 29, 2024 at 1:12 AM Rich Felker <dalias@libc.org> wrote:
> >
> > [...]
> > FWIW though I don't generally expect spurious declarations like this
> > to do any harm -- detection should be via a compile-and-link test not
> > just looking for a declaration. Is there a build system these days
> > that's doing purely declaration-based detection?
>
> I don't know about build systems, but I generally avoid build systems
> for my projects. I would not wish Autotools on an enemy.
+1
> Instead I use a non-anemic make, like GNU Make.
I agree, and use only GNU Make for my own software projects.
<https://git.kernel.org/pub/scm/libs/liba2i/liba2i.git/tree/GNUmakefile>
<https://git.kernel.org/pub/scm/libs/liba2i/liba2i.git/tree/share/mk>
Here's an example of feature testing in my makefiles:
CC_HAS_FFAT_LTO_OBJECTS := \
$(shell \
$(CC) -Werror -ffat-lto-objects -S -x c -o /dev/null /dev/null $(HIDE_ERR) \
&& $(ECHO) yes \
|| $(ECHO) no; \
)
<https://git.kernel.org/pub/scm/libs/liba2i/liba2i.git/tree/share/mk/configure/build-depends/gcc/cc.mk#n30>
> GNU Make is all that
> is needed to test header files for #defines.
Yep. However, when testing for a libc function, I think I would most
likely run CC without flags asking to only compile but not assemble or
link. I would just do the full compilation, and see if it works.
Although, I can consider that if some make(1)-based build system wants
to save a small amount of time, it might cut on these.
>
> Jeff
Have a lovely day!
Alex
--
<https://www.alejandro-colomar.es/>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2024-11-29 12:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-27 12:10 Alejandro Colomar
2024-11-29 6:11 ` Rich Felker
2024-11-29 6:35 ` Jeffrey Walton
2024-11-29 12:29 ` Alejandro Colomar [this message]
2024-11-29 12:22 ` Alejandro Colomar
[not found] ` <j4chwyy4onh2hs4yetqmy6fysovhrsxwdcn7svxdfuec5f6czv@3opbnluima4w>
[not found] ` <20250523135402.GL1827@brightrain.aerifal.cx>
2025-05-23 14:44 ` Alejandro Colomar
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=20241129122902.pbtifxnc6quivf3g@devuan \
--to=alx@kernel.org \
--cc=musl@lists.openwall.com \
--cc=noloader@gmail.com \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
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 NNTP newsgroup(s).