由 shogun1234 » 週六 7月 26, 2008 5:53 am
[quote="boku"]請問大大,
若我有個.a的library想變成shared library .so ...
不知該怎麼做...
是要自己在加個wrapper的*.c code媽?
可否方便說明一下...
Thanks a lot!~[/quote]
you can try to use
[code]
ld --whole-archive -shared -o lib_shared.so lib_name.a
[/code]
but some time you need to recompile with -fPIC before converting to shared library first.