This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Build malloc.c shared object?
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: "sam shepperd" <samshepperd at gmail dot com>
- Cc: libc-help at sourceware dot org
- Date: Tue, 12 Aug 2008 09:05:31 -0400
- Subject: Re: Build malloc.c shared object?
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=qXvjtz2qVxke9yIy3nXBwyJ0erlwrVnYm8q3g8poPfA=; b=AJ42Mxhq8QVD+kGkNM9TkEwh3R+F/O0SeTHWsaKjHMFfiRhH4KDKQQx+43Zb0rRqT/ sL6lqz6+UiyP5RfStQvNJ7poUyHwVhcZy0awdHjmHjqoAnHM/wVtAxL5qoCBWgXQ3TDY 9sIAQadvTEzIRVjfQ0hEL2anfp7gQFsTSHwbE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=mv2A9ZQQcRvNC7lVq6FbXOcORNx6d1o454UFxDXxjlUoroonJV5nEQvN1LXCOcCACy 1mZmUc94VdZhcwetp4OBplPTl7K0yq8vwbPXXOH2p4ohqqY2ewE38HnWf2GSYlOeGb41 1WUt3eE2WE7kQAUfOEwKrtm2DGinS/au+uhy0=
- References: <9a0bd7f70808110639o18360c59ya51837a1ba57a808@mail.gmail.com>
On Mon, Aug 11, 2008 at 9:39 AM, sam shepperd <samshepperd@gmail.com> wrote:
> how2 build malloc.c shared object? Please help....
>
> $ cd glibc-2.7/malloc
> $ gcc -O3 -g -fno-stack-protector -shared -ldl -o malloc.so malloc.c
This is not possible without a lot more work.
> malloc.c:254:28: error: malloc-machine.h: No such file or directory
To start off with, you don't list the machine sysdep directories in
order as include search directories.
I recommend you build glibc for your target, saving the build log
file, and examine the command line used to build malloc.os and then
use that as the basis for your work.
Cheers,
Carlos.