[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FYI: more doc and example for LIBOBJS/ALLOCA
From: |
Alexandre Duret-Lutz |
Subject: |
Re: FYI: more doc and example for LIBOBJS/ALLOCA |
Date: |
Mon, 01 Nov 2004 10:54:57 +0100 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) |
>>> "Ralf" == Ralf Wildenhues <address@hidden> writes:
Ralf> Nitpicking comments:
Danke. I'm checking this in.
2004-11-01 Alexandre Duret-Lutz <address@hidden>
* doc/automake.texi (LIBOBJS): Spelling and grammar corrections
from Ralf Wildenhues.
Index: doc/automake.texi
===================================================================
RCS file: /cvs/automake/automake/doc/automake.texi,v
retrieving revision 1.44.2.16
diff -u -r1.44.2.16 automake.texi
--- doc/automake.texi 31 Oct 2004 22:12:27 -0000 1.44.2.16
+++ doc/automake.texi 1 Nov 2004 09:51:14 -0000
@@ -3679,7 +3679,7 @@
@vindex LTALLOCA
@vindex ALLOCA
-The @code{$(LIBOBJS)} and @code{$(ALLOCA)} variables list objects
+The @code{$(LIBOBJS)} and @code{$(ALLOCA)} variables list object
files that should be compiled into the project to provide an
implementation for functions that are missing or broken on the host
system. They are substituted by @file{configure}.
@@ -3698,7 +3698,7 @@
Using these variables is very similar to doing conditional compilation
using @code{AC_SUBST} variables, as described in @ref{Conditional
-Sources}. That is, when building a program @code{$(LIBOBJS)} and
+Sources}. That is, when building a program, @code{$(LIBOBJS)} and
@code{$(ALLOCA)} should be added to the associated @samp{*_LDADD}
variable, or to the @samp{*_LIBADD} variable when building a library.
However there is no need to list the corresponding sources in
@@ -3732,11 +3732,11 @@
@cvindex AC_CONFIG_LIBOBJ_DIR
-The @code{AC_CONFIG_LIBOBJ_DIR} tells Autoconf the source files of
-these object files are to be found in the @file{lib/} directory.
-Automake does not yet use this information; anyway it knows the source
-files are expected to be in the directory where the @code{$(LIBOBJS)}
-and @code{$(ALLOCA)} variables are used.
+The @code{AC_CONFIG_LIBOBJ_DIR} tells Autoconf that the source files
+of these object files are to be found in the @file{lib/} directory.
+Automake does not yet use this information; it knows the source files
+are expected to be in the directory where the @code{$(LIBOBJS)} and
address@hidden(ALLOCA)} variables are used.
The @file{lib/} directory should therefore contain @file{malloc.c},
@file{memcmp.c}, @file{strdup.c}, @file{alloca.c}. Here is its
@@ -3777,13 +3777,12 @@
@file{malloc.$(OBJEXT)} is not buildable in the @file{src/} directory.
(Actually if you try using @code{$(LIBOBJS)} in @file{src/}, Automake
will require a copy of @file{malloc.c}, @file{memcmp.c},
address@hidden, @file{alloca.c} here too.)
address@hidden, @file{alloca.c} in @file{src/} too.)
Because @code{$(LIBOBJS)} and @code{$(ALLOCA)} contain object
-filenames whose name end with @code{.$(OBJEXT)}, they are not suitable
-for Libtool libraries (where the expected object extension is
address@hidden): @code{LTLIBOBJS} and @code{LTALLOCA} should be used
-instead.
+filenames that end with @code{.$(OBJEXT)}, they are not suitable for
+Libtool libraries (where the expected object extension is @file{.lo}):
address@hidden and @code{LTALLOCA} should be used instead.
@code{LTLIBOBJS} is defined automatically by Autoconf and should not
be defined by hand (as in the past), however at the time of writing
--
Alexandre Duret-Lutz