Want to use --emit-relocs in the linker step

Mahmood Naderan mahmood.nt at gmail.com
Mon Apr 27 13:53:59 UTC 2020


Hi,
I want to add '--emit-relocs' at the linker stage while building nginx, I
have edited the objs/Makefile to be like this:

        $(LINK) -o objs/nginx \
        objs/src/core/nginx.o \
         ....
        objs/ngx_modules.o \
        -ldl -lpthread -lcrypt -lpcre -lz --emit-relocs \
        -Wl,-E


However, I get this error

cc: error: unrecognized command line option '--emit-relocs'

Any idea to fix that?


Regards,
Mahmood
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20200427/46742c5e/attachment.htm>


More information about the nginx mailing list