This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: glibc + add new function
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: Ashutosh Sharma <ashu0204 at yahoo dot com>
- Cc: libc-help at sourceware dot org
- Date: Sat, 20 Jun 2009 23:08:10 -0400
- Subject: Re: glibc + add new function
- References: <883507.93145.qm@web53812.mail.re2.yahoo.com>
On Fri, Jun 19, 2009 at 1:35 AM, Ashutosh Sharma<ashu0204@yahoo.com> wrote:
> I have added new function to glibc. I am able to build the system successfully. But after installation i found new function is only part of libc.a not libc.so.6
>
> i have added new function to sysdep/powerpc/powerpc32/function.S
OK.
> i have updated make file in string/Makefile (routines)
This is incorrect. You should be adding function.S to the appropriate
variable in sysdeps/powerpc/powerpc32/Makefile, but only when "ifeq
($(subdir),string)". You should never modify a non-machine Makefile if
you are adding a machine-dependent function.
> i have update header file include/string.h ?(libc_hidden_builtin_proto (function)
Did you add your function to the declarations in string/string.h?
Cheers,
Carlos.