开发者

What is the L_* macro in busybox?

I am trying to cross-compile busybox but I am getting 'undefined reference' at the linking stage. Using nm, the symbol were in fact missing from the library file (libbb.a in my case.) Looking into the source ('busybox/libbb/xfuncs.c'), there are all these #if开发者_StackOverflowdef L_<function_name> wrapping around the functions in question. Does anyone know what these macros are? I grep through the source and cannot find where they are defined.


These macros are used as sentinels for local versions of a function if the libc does not provide them. In many packages, the autoconf scripts are supposed to detect their presence and set the options in config.h accordingly so that the source files can know which should and shouldn't be defined.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜