How to create shared library using cross compilation method?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to create shared library using cross compilation method?

Jump to solution
647 Views
eldhopaulk
Contributor II

How to create shared library using cross compilation method like using arm-none-linux-gnueabi

0 Kudos
1 Solution
536 Views
raymondwang
Senior Contributor I

It's not relevant to iMX CPU. Even that I can share with you something.

gcc -shared -fPIC -o xxx.so source1.c source2.c sourcex.c

This will generate a xxx.so which is shared library.

View solution in original post

0 Kudos
2 Replies
537 Views
raymondwang
Senior Contributor I

It's not relevant to iMX CPU. Even that I can share with you something.

gcc -shared -fPIC -o xxx.so source1.c source2.c sourcex.c

This will generate a xxx.so which is shared library.

0 Kudos
536 Views
eldhopaulk
Contributor II

Thank you Wang!

0 Kudos