This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building and installing a new version of GLIBC on CentOS


Hi Florian,

The reason I came up with this build switch is that it was reported by
configure. I inspected the results and noticed build and host were
different, used the value reported and it worked.

Ian

Le ven. 23 août 2019, à 08 h 56, Florian Weimer <fweimer@redhat.com> a
écrit :

> * Ian Trudel:
>
> > Here is the solution to build the 32 bit version of glibc on CentOS:
> >
> > ../../configure --prefix=/usr --disable-profile --enable-add-ons
> --with-headers=/usr/include --with-binutils=/usr/bin
> > --build=x86_64-x32-linux-gnu --host=i686-pc-linux-gnu CC="gcc -m32"
> CXX="g++ -m32" CFLAGS="-O2 -march=i686"
> > CXXFLAGS="-O2 -march=i686"
> >
> > The build and host switches have to be different for some strange reason.
>
> --build=x86_64-x32-linux-gnu seems wrong.
>
>   CC="gcc -m32" CXX="g++ -m32" --build=i686-linux-gnu
>
> works for me, with a sufficiently recent gcc and g++ on the path.
>
> Thanks,
> Florian
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]