c - What does gcc linking option / LOCAL_CFLAGS -rdynamic do -
i working on android ndk project. when try modify project file (android.mk) found linking option -rdynamic after reading reference, still not sure meaning of flag.
the project working on. has 2 parts: - multiple client applications. - multiple shared libraries. (each client has corresponding shared library) - background daemon processes: process manager , launcher.
first, client application. once client starts run, able communicate manager process. manager use dlopen() load corresponding shared library based on launcher process. after that, manager create new launcher process.
i felt link flag has background process, not sure.
thanks
reference:
https://gcc.gnu.org/onlinedocs/gcc/link-options.html#link-options
-rdynamic
pass flag -export-dynamic elf linker, on targets support it. instructs linker add symbols, not used ones, dynamic symbol table. option needed uses of dlopen or allow obtaining backtraces within program.
adding -rdynamic
local_cflags
nothing, -rdynamic
linker flag. need add local_ldflags
.
for more thorough explanation of -rdynamic
, see https://stackoverflow.com/a/12636790/632035 (i know question isn't same, answer explains flag well).
Comments
Post a Comment