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

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

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

1、修改feeds/packages/net/nginx/Makefile

找到configure一段,添加一句:

--with-stream \

需要去掉的一句:

--without-http_upstream_zone_module \

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

TARGET_CFLAGS += -DNGX_HAVE_GCC_ATOMIC=1

注:如果不加这句,编译时会报这个错:

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

2、退回到主目录就可以开始编译了:

make V=99

猜你喜欢

转载自blog.csdn.net/d9394952/article/details/88832008
今日推荐