This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: glibc + add new function


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]