How to create shared library using cross compilation method?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to create shared library using cross compilation method?

跳至解决方案
1,070 次查看
eldhopaulk
Contributor II

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

0 项奖励
回复
1 解答
959 次查看
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 项奖励
回复
2 回复数
960 次查看
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 项奖励
回复
959 次查看
eldhopaulk
Contributor II

Thank you Wang!

0 项奖励
回复