bug-gnulib
[Top][All Lists]
Advanced

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

Re: [Bug-gnulib] Re: fnmatch.c includes alloca.h conditionally?


From: Alexandre Duret-Lutz
Subject: Re: [Bug-gnulib] Re: fnmatch.c includes alloca.h conditionally?
Date: Mon, 19 Apr 2004 23:22:47 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

>>> "Derek" == Derek Robert Price <address@hidden> writes:

[...]

 Derek> Otherwise, it sets the output variable `ALLOCA' to
 Derek> `alloca.o' and defines `C_ALLOCA' (so programs can
 Derek> periodically call `alloca(0)' to garbage collect).  This
 Derek> variable is separate from `LIBOBJS' so multiple programs
 Derek> can share the value of `ALLOCA' without needing to
 Derek> create an actual library, in case only some of them use
 Derek> the code in `LIBOBJS'.

Since these variables are separate it means that if you want to
use both LIBOBJS and ALLOCA you should use

  program_LDADD = $(LIBOBJS) $(ALLOCA)
or 
  library_a_LIBADD = $(LIBOBJS) $(ALLOCA)

One inconsistency here is that Autoconf defines LTLIBOBJS but
not LTALLOCA.  So if you want to include alloca in a shared
library you have to define LTALLOCA as shown in the Libtool
manual (but not LTLIBOBJS).

[...]

-- 
Alexandre Duret-Lutz





reply via email to

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