summaryrefslogtreecommitdiffstats
path: root/libiberty/README
diff options
context:
space:
mode:
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-25 04:34:10 +0000
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-25 04:34:10 +0000
commitcf3167a99f0a424c442a9389fbb64b292cd1c9ab (patch)
tree83ad02fe2a0c4d4c057095a82205a6bac30d382a /libiberty/README
parente5b6be5eac8d5baf7367a9ce9d627acfecdb106b (diff)
downloadppe42-gcc-cf3167a99f0a424c442a9389fbb64b292cd1c9ab.tar.gz
ppe42-gcc-cf3167a99f0a424c442a9389fbb64b292cd1c9ab.zip
* README: Mention changes to Makefile.in and functions.texi.
* gather-docs: Mention 'make stamp-functions' in the header. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154545 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/README')
-rw-r--r--libiberty/README10
1 files changed, 8 insertions, 2 deletions
diff --git a/libiberty/README b/libiberty/README
index 886bd67bc9d..9f1cc979e49 100644
--- a/libiberty/README
+++ b/libiberty/README
@@ -25,13 +25,14 @@ There are two sets of files: Those that are "required" will be
included in the library for all configurations, while those
that are "optional" will be included in the library only if "needed."
-To add a new required file, edit Makefile to add the source file
+To add a new required file, edit Makefile.in to add the source file
name to CFILES and the object file to REQUIRED_OFILES.
To add a new optional file, it must provide a single function, and the
name of the function must be the same as the name of the file.
- * Add the source file name to CFILES.
+ * Add the source file name to CFILES in Makefile.in and the object
+ file to CONFIGURED_OFILES.
* Add the function to name to the funcs shell variable in
configure.ac.
@@ -48,6 +49,11 @@ name of the function must be the same as the name of the file.
object file to LIBOBJS, and add the function name to the case
controlling whether to define HAVE_func.
+Finally, in the build directory of libiberty, configure with
+"--enable-maintainer-mode", run "make maint-deps" to update
+Makefile.in, and run 'make stamp-functions' to regenerate
+functions.texi.
+
The optional file you've added (e.g. getcwd.c) should compile and work
on all hosts where it is needed. It does not have to work or even
compile on hosts where it is not needed.
OpenPOWER on IntegriCloud