nginx stream module on mt7621(newifi3 d2) with openwrt 18.06.2

由于须要使用nginx的stream模块,专门编译了一个nginx安装包,适用于openwrt 18.06.2版本,mt7621平台html

顺便记录一下编译的笔记:nginx

一、修改feeds/packages/net/nginx/Makefileatom

找到configure一段,添加一句:code

--with-stream \

须要去掉的一句:htm

--without-http_upstream_zone_module \

另外,最重要的一句,在Makefile适当的位置加入:(参见这里:https://www.right.com.cn/forum/thread-515506-1-1.htmlget

TARGET_CFLAGS += -DNGX_HAVE_GCC_ATOMIC=1

注:若是不加这句,编译时会报这个错:it

src/core/ngx_rwlock.c:116:2: error: #error ngx_atomic_cmp_set() is not defined!
#error ngx_atomic_cmp_set() is not defined!

二、退回到主目录就能够开始编译了:编译

make V=99class

相关文章
相关标签/搜索