在编译某sdk时遇到的问题 relocation R_X86_64_32 against `.xxx' can not be used when making a PIE object; recompile with -fPIE 由于gcc默认使用-fPIE,所以要求链接的库也必须由-fPIE库。 解决方法是在编译是加入 -no-pie