Replies: 2 comments
-
add_links/add_linkdirs 就可以了,-fPIC 跟 add_links 没啥关系。你的代码,以及 link 的 一些 静态 .a 库里面,没有带 -fPIC 编译,需要把这些 .a 库都开 -fPIC 重编下才行 |
Beta Was this translation helpful? Give feedback.
0 replies
-
好的,多谢。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
描述讨论详情
例如:
LOCAL_LDLIBS := -llog -lm -lz
libs/libxxx.a \
libs/libtest.so \
这种使用xmake的什么表达呢?是add_links吗?
我尝试了很多做法,始终会报出很奇怪的报错:
“requires unsupported dynamic reloc R_ARM_REL32; recompile with -fPIC”,
而强行通过add_cflags("-fPIC")后,问题依旧。
请问如何使用呢?
Beta Was this translation helpful? Give feedback.
All reactions