[PATCH 4/7] Add --early-cflags configure option

H.J. Lu hjl.tools@gmail.com
Fri Jan 14 14:33:06 GMT 2022


On Fri, Jan 14, 2022 at 6:29 AM Florian Weimer <fweimer@redhat.com> wrote:
>
> * H. J. Lu:
>
> >> +@item --with-early-cflags=@var{cflags}
> >> +Use additional compiler flags @var{cflags} to build the early startup
> >> +code of the dynamic linker.  These flags can be used to enable early
> >> +dynamic linker diagnostics to run on CPUs which are not compatible with
> >> +the rest of @theglibc{}, for example, due to compiler flags which target
> >> +a later instruction set architecture (ISA).
> >
> > Isn't it limited to rtld?  If yes, I prefer --with-early-rtld-cflags
>
> It's currently restricted to ld.so.  But we might enhance it to cover
> static linking in the future, too.

But static linking may need a different early CFLAGS.

-- 
H.J.


More information about the Libc-alpha mailing list