shared vs dynamic libs
Hi
I saw that below with another project. What exactly is that? shared would need some *.so to go with? But there’s only the executable shipped.
- what does -rdynamic?
- “ -ggdb?
- with -shared *.so libs should be shipped with the executable?
Thanks Michael
LNFLAGS+=-shared -rdynamic -nodefaultlibs -m32 -ggdb -L/usr/lib32 -L../libavionics -L../libogl -L$(LUAJIT)/lib
3 replies
HiThe executable probably depends on the system versions of the shared object.
I saw that below with another project. What exactly is that? shared would need some *.so to go with? But there’s only the executable shipped.
– what does -rdynamic?
My guess: It enables dynamic relocation [en.wikipedia.org]) or something like that. It is only available in shared objects.
– “ -ggdb?Add debugging symbols for GDB
– with -shared *.so libs should be shipped with the executable?
The ones not likely to be found installed on the target system (those in your project). Libraries like Qt can be held required and are not expected to be delivered with your application or library.
You must log in to post a reply. Not a member yet? Register here!
