【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/p/10532284.html