This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Building 2.27 on CentOS
On 06/01/2018 01:38 PM, Andreas Hubert wrote:
My goal is to pack this in a RPM, but currently I just try to build it directly on the command line. Only after that works my next step would be to make it work with a spec file.
In this case, please show us the *exact* commands you use, not garbled
by your mail client. This includes the SCL activation step.
Maybe I have something wrong with my DTS 7 setup.. do you maybe have any sources you follow to setup you build environment that I could try to follow?
I install devtoolset-7-gcc and devtoolset-7-gcc-c++, and the configure
glibc with:
../git/configure --prefix=/usr CC=/opt/rh/devtoolset-7/root/usr/bin/gcc
CXX=/opt/rh/devtoolset-7/root/usr/bin/g++
make -j4
Alternatively, running
scl enable devtoolset-7 -- bash
and entering
../git/configure --prefix=/usr
make -j4
in the subshell (!) works as well.
Thanks,
Florian