This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Problems with shared library using static objects
- From: Jorge Pereira <jpereiran at gmail dot com>
- To: List GCC <gcc-help at gcc dot gnu dot org>
- Date: Thu, 10 Sep 2009 18:18:29 -0300
- Subject: Problems with shared library using static objects
- References: <5a0574590909101416h6d1d968bjde5bc5f178c8884@mail.gmail.com>
Hello Everyone!
when compile the dynamic project and have duplicate calls for some
libraries, eg:
gcc -shared -o libfoo.so /path/libhehe.so /path/libhehe.so /path/libhehe.so
This works fine! but when have static files, don't works becouse the
gcc talks about "redefinitions" of libraries, eg:
gcc -shared -o libfoo.so -Wl,-whole-archive /path/libhehe.a
/path/libhehe.a /path/libhehe.a
My doubt is: exist some way for gcc ignore the multiple references!?
Thanks!
--
Regards,
+--------------------------------------------+
Jorge Pereira,
Blog: http://blog.jorgepereira.com.br/
+--------------------------------------------+