[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Help needed to build shared library with libtool
From: |
David Aldrich |
Subject: |
RE: Help needed to build shared library with libtool |
Date: |
Fri, 14 Oct 2011 13:45:02 +0000 |
Hi Peter
Thanks for your reply.
> -shared is not a libtool flag
Oh, that's weird! We've been using that option for building other shared
libraries for a long time.
> does it work if you do:
>
> libtool --mode=link g++ -o libGUI.la <object files> -rpath /usr/local/lib
>
That doesn't work, but the result is different:
libtool --mode=link g++ -o libGUI.la <my obj files> -rpath /usr/local/lib
-rpath /usr/lib64 -L/usr/lib64 -pthread -L/usr/lib64
-lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8
-lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8
-lwx_baseu_net-2.8 -lwx_baseu-2.8 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0
-lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
*** Warning: Linking the shared library libGUI.la against the non-libtool
*** objects <my obj files> is not portable!
libtool: link: warning: ignoring multiple `-rpath's for a libtool library
libtool: link: g++ -shared -nostdlib
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/crtbeginS.o <my obj files>
-L/usr/lib64 -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8
-lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8
-lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8 -lgtk-x11-2.0
-lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0
-lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0
-lgmodule-2.0 -lglib-2.0 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.4
-L/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../.. -lstdc++
-lm -lc -lgcc_s /usr/lib/gcc/x86_64-redhat-linux/4.4.4/crtendS.o
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/crtn.o -pthread
-pthread -Wl,-soname -Wl,libGUI.so.0 -o libGUI.so.0.0.0
libtool: link: (cd <some paths>)
ln: creating symbolic link `libGUI.so.0': Operation not supported
make: *** [libGUI.so] Error 1
David