Mercurial > hg > CbC > CbC_gcc
diff libiberty/README @ 55:77e2b8dfacca gcc-4.4.5
update it from 4.4.3 to 4.5.0
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 12 Feb 2010 23:39:51 +0900 |
parents | a06113de4d67 |
children |
line wrap: on
line diff
--- a/libiberty/README Sun Feb 07 18:28:00 2010 +0900 +++ b/libiberty/README Fri Feb 12 23:39:51 2010 +0900 @@ -25,13 +25,14 @@ 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 @@ 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.