开发者

What is the L_* macro in busybox?

开发者 https://www.devze.com 2023-01-20 19:49 出处:网络
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

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

精彩评论

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