如何以及使用“sh”前缀标记SH LDFLAGS使用哪个链接器/进程

时间:2013-11-26 01:35:15

标签: gcc ld

示例:SH_LDFLAGS="-Wl,-z,relro

并链接:http://www.redhat.com/archives/fedora-cvs-commits/2006-May/msg00608.html

Go语言也使用前缀标记CGO_CFLAGSCGO_LDFLAGS

1 个答案:

答案 0 :(得分:0)

SH_CFLAGS Flags to use compiling sources destined for a shared library
SH_LDFLAGS Flags to use linking a shared library
SHOBJ_CFLAGS Flags to use compiling sources destined for a shared object
SHOBJ_LDFLAGS Flags to use linking a shared object, undefined symbols allowed
SHOBJ_LDFLAGS_R - as above, but all symbols must be resolved
SH_LINKFLAGS Flags to use linking an executable which will load shared objects
LD_LIBRARY_PATH Environment variable which specifies path to shared libraries