How to compile glibc?
I read DeaveM's post about upstream glibc probably having working optimizations for post-ultrasparcIII CPUs and decided that I should give the latest upstream glibc a try.
However, I do not understand how should I configure it for mostly-32-bit Debian but with optimized versions for different CPUs.
--host=sparc64-linux-gnu or --host=sparc-linux-gnu?
--enable-multiarch probably?
And the following creates 64-bit libs only.
CC="sparc-linux-gnu-gcc -m64" CXX="sparc-linux-gnu-g++ -m64" ../glibc/configure --enable-multi-arch --enable-add-ons=libidn,nptl
Signature · 1 line
Meelis Roos ([email protected])
Quoted 6 lines · Meelis Roos
I read DeaveM's post about upstream glibc probably having working optimizations for post-ultrasparcIII CPUs and decided that I should give the latest upstream glibc a try.
However, I do not understand how should I configure it for mostly-32-bit Debian but with optimized versions for different CPUs.
Maybe examine Debian glibc package source debian/rules file?
Signature · 1 line
2. That which causes joy or happiness.
From: Meelis Roos <[email protected]>
Date: Thu, 18 Jun 2015 11:45:13 +0300 (EEST)
Quoted 8 lines
I read DeaveM's post about upstream glibc probably having working optimizations for post-ultrasparcIII CPUs and decided that I should give the latest upstream glibc a try.
However, I do not understand how should I configure it for mostly-32-bit Debian but with optimized versions for different CPUs.
--host=sparc64-linux-gnu or --host=sparc-linux-gnu?
You want to use --target=sparcv9-linux-gnu and have multiarch enabled and run the build under "sparc32 bash" environment where 'uname' returns plain 'sparc'.
For 64-bit builds I use just plain:
CC="gcc -m64" CXX="g++ -m64" ./configure