comparison 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
comparison
equal deleted inserted replaced
52:c156f1bd5cd9 55:77e2b8dfacca
23 23
24 There are two sets of files: Those that are "required" will be 24 There are two sets of files: Those that are "required" will be
25 included in the library for all configurations, while those 25 included in the library for all configurations, while those
26 that are "optional" will be included in the library only if "needed." 26 that are "optional" will be included in the library only if "needed."
27 27
28 To add a new required file, edit Makefile to add the source file 28 To add a new required file, edit Makefile.in to add the source file
29 name to CFILES and the object file to REQUIRED_OFILES. 29 name to CFILES and the object file to REQUIRED_OFILES.
30 30
31 To add a new optional file, it must provide a single function, and the 31 To add a new optional file, it must provide a single function, and the
32 name of the function must be the same as the name of the file. 32 name of the function must be the same as the name of the file.
33 33
34 * Add the source file name to CFILES. 34 * Add the source file name to CFILES in Makefile.in and the object
35 file to CONFIGURED_OFILES.
35 36
36 * Add the function to name to the funcs shell variable in 37 * Add the function to name to the funcs shell variable in
37 configure.ac. 38 configure.ac.
38 39
39 * Add the function to the AC_CHECK_FUNCS lists just after the 40 * Add the function to the AC_CHECK_FUNCS lists just after the
45 writing, the special cases are newlib and VxWorks. If a 46 writing, the special cases are newlib and VxWorks. If a
46 particular special case provides the function, you do not need 47 particular special case provides the function, you do not need
47 to do anything. If it does not provide the function, add the 48 to do anything. If it does not provide the function, add the
48 object file to LIBOBJS, and add the function name to the case 49 object file to LIBOBJS, and add the function name to the case
49 controlling whether to define HAVE_func. 50 controlling whether to define HAVE_func.
51
52 Finally, in the build directory of libiberty, configure with
53 "--enable-maintainer-mode", run "make maint-deps" to update
54 Makefile.in, and run 'make stamp-functions' to regenerate
55 functions.texi.
50 56
51 The optional file you've added (e.g. getcwd.c) should compile and work 57 The optional file you've added (e.g. getcwd.c) should compile and work
52 on all hosts where it is needed. It does not have to work or even 58 on all hosts where it is needed. It does not have to work or even
53 compile on hosts where it is not needed. 59 compile on hosts where it is not needed.
54 60