From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: Storing version information in libc.so
Date: Sat, 30 Nov 2013 16:42:54 -0500 [thread overview]
Message-ID: <20131130214254.GY24286@brightrain.aerifal.cx> (raw)
In-Reply-To: <20131127054806.GA11224@brightrain.aerifal.cx>
On Wed, Nov 27, 2013 at 12:48:06AM -0500, Rich Felker wrote:
> As for the build system, the proposed rule for generating version.c
> is this:
>
> src/internal/version.c: VERSION $(wildcard .git .git/*)
> sh tools/version.sh > $@
I think I'm going to replace this with:
src/internal/version.c: src/internal/version.h
and have version.h be the generated file, containing just:
#define VERSION "..."
This gives more flexibility to modify the mechanisms/linkage of stuff
in version.c without having to edit a script, and makes the version.sh
script much more generic. It also avoids the need to hard-code a
generated .c file into the SRCS/OBJS lists.
Rich
prev parent reply other threads:[~2013-11-30 21:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-27 5:48 Rich Felker
2013-11-30 21:42 ` Rich Felker [this message]
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=20131130214254.GY24286@brightrain.aerifal.cx \
--to=dalias@aerifal.cx \
--cc=musl@lists.openwall.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).