请教问题nginx反向代理proxy

请教问题nginx反向代理proxy,第1张

你要读懂这个Makefile,要查两样东西,一样是gcc文档,一样是Makefile的文档。

先来说gcc的编译选项问题:

-Wall是做检查,比如语法错误啊,指针不一致,参数没有用到之类的错误

关于 -Wno-format,在GCC的编译选项中有以下解释,你可以读一读,具体的方法你去man gcc,可以查到相关信息

-Wno-format-extra-args

If -Wformat is specified, do not warn about excess arguments to a

"printf" or "scanf" format function The C standard specifies that

such arguments are ignored

Where the unused arguments lie between used arguments that are

specified with $ operand number specifications, normally warnings

are still given, since the implementation could not know what type

to pass to "va_arg" to skip the unused arguments However, in the

case of "scanf" formats, this option will suppress the warning if

the unused arguments are all pointers, since the Single Unix

Specification says that such unused arguments are allowed

-Wno-format-zero-length (C and Objective-C only)

If -Wformat is specified, do not warn about zero-length formats

The C standard specifies that zero-length formats are allowed

关于-g,用于GDB调试,这个不用再说了吧。

-DDEBUG

实际上是用-D定义了一个名叫DEBUG的宏,初始值为1。

所以你的Makefile下面会有这么一段

ifeq (YES, ${DEBUG})

CFLAGS := ${DEBUG_CFLAGS}

CXXFLAGS := ${DEBUG_CXXFLAGS}

LDFLAGS := ${DEBUG_LDFLAGS}

else

CFLAGS := ${RELEASE_CFLAGS}

CXXFLAGS := ${RELEASE_CXXFLAGS}

LDFLAGS := ${RELEASE_LDFLAGS}

endif

表示如果是YES的值与DEBUG的值相等的话(不加$()指数字的值相等)用于调试手段,则会调用调试用的相关变量,如果是正式发行版,则会用REALEASE的相关变量,

你的第二个问题是关于Makefile的函数的,

basename表示取前缀函数,比如basename aout 返回值为a,

而addsuffix是加后缀的函数addsuffix o,a 返回值为ao

不过建议你去看看Makefile的手册。

以上就是关于请教问题nginx反向代理proxy全部的内容,包括:请教问题nginx反向代理proxy、如何在windows上安装部署设置SVN服务器、如何在uboot中添加驱动程序等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zz/9785542.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-02
下一篇2023-05-02

发表评论

登录后才能评论

评论列表(0条)

    保存