Re: [Bug-gnulib] Re: fnmatch.c includes alloca.h conditionally?
Alexandre Duret-Lutz <[email protected]>
| Newsgroups | gmane.comp.sysutils.autoconf.bugs,gmane.comp.version-control.cvs.bugs,gmane.comp.sysutils.automake.bugs,gmane.comp.lib.gnulib.bugs |
|---|---|
| Message-ID | <[email protected]> |
>>> "Derek" == Derek Robert Price <[email protected]> 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