From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrey mirtchovski To: 9fans@cse.psu.edu Subject: Re: [9fans] malloc redefinition when linking pcc with 8c programs In-Reply-To: <20031201205415.GA25262@ionkov.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Date: Mon, 1 Dec 2003 14:43:18 -0700 Topicbox-Message-UUID: 99d742c2-eacc-11e9-9e20-41e7f4b1d025 On Mon, 1 Dec 2003, Latchesar Ionkov wrote: > What about compiling libdraw (and friends) with pcc? > as Russ said, it's a pain in the butt... a more elegant solution would be to change the names of the system calls "behind the scenes" while linking with ape/libc.a for example malloc becomes apemalloc. with statically linked binaries that should solve my problem... unless i'm missing many things. "links" (the browser) is such a bloated piece of software that a rewrite for plan9 seems impossible, you saw the font_include.c example already, which won't even compile under pcc because it runs out of memory :) andrey