Want to add a linker option for building glibc

Florian Weimer fweimer@redhat.com
Wed May 27 10:06:01 GMT 2020

* Mahmood Naderan via Libc-help:

> I would like to build a 2.23 with a custom linker flag --emit-relocs. I tried this command
> ~/glibc-2.23/configure --prefix=/opt/glibc-2.23-install --with-ld-opt="-Wl,--emit-relocs"
> But when I grep in the output of "make" and "make install", I don't see such option in the processed files.
> What should I do then?

It should be possible to set LINK.o during make:

$ make -j`nproc` LINK.o="gcc -Wl,--emit-relocs"


More information about the Libc-help mailing list