【link】illegal text-relocation in IOS platform
DATE: 2018.11.12
1、参考
https://blog.csdn.net/shengpeng3344/article/details/52998224?locationNum=6&fps=1
2、问题描述
在IOS64位下编译动态库出现以下问题:
ld:illegal text-relocation to "xxxx" in "xxx.o" for architecture armv7
clang: error: link command failed with exit code 1(use -v to see invacation)
3、解决方案
在链接生成动态库时,指定下面的链接选项:
LDFLAG+=-read_only_relocs suppress
THE END !
本文为博主原创文章,未经博主允许不得转载。若允许转载,请注明来源https://www.cnblogs.com/SoaringLee/,否则保留追究法律责任的权利!
另外,本人提供付费咨询服务并长期承接各类毕设以及外包项目。联系QQ:2963033731。加Q备注:CNBLOG外包

浙公网安备 33010602011771号