In message <[EMAIL PROTECTED]>, Dan ABITBOL writes:
>4/ then juste make 
>arm-linux-g++ -shared -fpic -ldl -o libstdc++.x.x.x.so *.o
>the you ll have the shared one ....whic is libstdc++.x.x.x.so 

That doesn't create a shared library.  You get a dynamic object, but using
-fpic during final link doesn't stop everything inside the library being PDC.

Incidentally, it isn't necessary to manually unpack the archive.  You can just
do "gcc -Wl,--whole-archive libxx.a ...".

>Could you also help me? once we have our shared library, how I do to link my 
>main with the dynamic one and prevent the arm-linux-linker from linking with 
>the static one ?

GNU ld should always prefer a shared object if you have one.

p.



_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to