Problems with shared library using static objects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/
+--------------------------------------------+

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux