[Top][All Lists]

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

Re: gnulib request

From: Eric Blake
Subject: Re: gnulib request
Date: Sun, 30 Sep 2007 16:51:04 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070728 Thunderbird/ Mnenhy/

Hash: SHA1

According to Sean Boudreau on 9/30/2007 4:10 PM:
> Hello:

Hello Sean, and adding bug-gnulib,

> Would it be possible to not bring in freading.c and fpurge.c
> and to disable the associated tests if fflush() behaves as
> you expect?

For m4 1.4.x: If fflush completely obeys POSIX (note that even glibc has
bugs here, when it comes to properly flushing at program exit), then
freading.c and fpurge.c might still be compiled because of the
configure-time tests for those modules, but they will not be linked into
the final m4 executable because their symbols are not directly referenced
from the main body of m4 source code - that is one of the properties of a
static library.  Compiling them as part of libgnu.a is therefore a slight
waste of time, but otherwise harmless.

Now for m4 2.0, which uses dynamic libraries, you are correct that the
final dynamic library will therefore be slightly bloated by the addition
of symbols for freading and fpurge, even though nothing in the rest of the
library or the main program uses it.  But I don't know if anything can be
done (or is worth doing) to avoid that.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


reply via email to

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