Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20131130214254.GY24286@brightrain.aerifal.cx>
Date: Sat, 30 Nov 2013 16:42:54 -0500
From: Rich Felker <dalias@...ifal.cx>
To: musl@...ts.openwall.com
Subject: Re: Storing version information in libc.so

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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.