Check out my first novel, midnight's simulacra!

Libc: Difference between revisions

From dankwiki
No edit summary
 
Line 44: Line 44:
* provide frame pointers (none for inlined code, omitted with most [[gcc]] optimization levels)
* provide frame pointers (none for inlined code, omitted with most [[gcc]] optimization levels)
==Using an alternate Glibc==
==Using an alternate Glibc==
Acquire the glibc sources, create a build directory, and run <tt>configure</tt> from that build directory. You are advised to run with <tt>--prefix=/usr</tt>, and then install to an alternative directory using e.g. <tt>make install DESTDIR=$HOME/glibc</tt>. Use <tt>--with-headers</tt> to specify kernel headers:
<pre>
[schwarzgerat](0) $ pwd
/home/dank/src/glibc/build
[schwarzgerat](0) $ ../configure --prefix=/usr --with-headers=/usr/src/linux-headers-5.7.7nlb/include/generated/uapi/
</pre>
So you've installed a local build of Glibc to, say, $HOME/glibc, eh?
So you've installed a local build of Glibc to, say, $HOME/glibc, eh?