[PATCH] Makerules: pass CFLAGS when building .S files, BZ #23273
Sergei Trofimovich
slyich@gmail.com
Mon Jun 11 15:31:00 GMT 2018
On Mon, 11 Jun 2018 15:47:41 +0200
Florian Weimer <fweimer@redhat.com> wrote:
> On 06/11/2018 03:41 PM, Sergei Trofimovich wrote:
> > The below works on unmodified glibc as well:
> >
> > $ ../glibc/configure \
> > --build=x86_64-pc-linux-gnu \
> > --host=armv7a-hardfloat-linux-gnueabi \
> > CC="armv7a-hardfloat-linux-gnueabi-gcc -march=armv7-a -mfpu=neon" \
> > CFLAGS="-pipe -O2" \
> > --prefix=/usr
>
> Then please use that instead. It's what we do on other architectures, too.
Aha. Gentoo allows user to specify CFLAGS from a limited (but not small) set of
flags when glibc is built locally:
https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/flag-o-matic.eclass#n25
Does it mean that canonical way to build glibc would be to always pass all
CFLAGS/CXXFLAGS as part of CC/CXX?
CC="${TARGET_CC} ${CFLAGS}"
CXX="${TARGET_CC} ${CXXFLAGS}"
Or should only a small subset of CFLAGS/CXXFLAGS go to CC/CXX?
CC="${TARGET_CC} ${filtered_CFLAGS}"
CXX="${TARGET_CC} ${filtered_CXXFLAGS}"
If it should be a filtered subset, how can we easily infer supported subset?
--
Sergei
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: æøÃÂÃÂþòðàÿþôÿøÃÂàOpenPGP
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20180611/8c907a54/attachment.sig>
More information about the Libc-alpha
mailing list