@@ -219,12 +219,12 @@ Type the following commands to build and install:
219219
220220all:
221221 cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) linux
222- cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.2 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib
222+ cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.2 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
223223 cd $OPENRESTY_BUILD_DIR/nginx-1.0.5 && $(MAKE)
224224
225225install:
226226 cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
227- cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.2 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib
227+ cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.2 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
228228 cd $OPENRESTY_BUILD_DIR/nginx-1.0.5 && $(MAKE) install DESTDIR=$(DESTDIR)
229229
230230clean:
@@ -1483,3 +1483,57 @@ install:
14831483clean:
14841484 rm -rf build
14851485
1486+
1487+
1488+ === TEST 30: default (on Mac OS X)
1489+ --- ONLY
1490+ --- cmd: ./configure --dry-run --platform=darwin
1491+ --- out
1492+ platform: macosx (darwin)
1493+ cp -rp bundle/ build/
1494+ cd build
1495+ cd lua-5.1.4
1496+ gmake macosx
1497+ gmake install INSTALL_TOP=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua
1498+ export LUA_LIB='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/lib'
1499+ export LUA_INC='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include'
1500+ cd ..
1501+ cd nginx-1.0.5
1502+ ./configure --prefix=/usr/local/openresty/nginx \
1503+ --add-module=../ngx_devel_kit-0.2.17 \
1504+ --add-module=../echo-nginx-module-0.37rc1 \
1505+ --add-module=../xss-nginx-module-0.03rc3 \
1506+ --add-module=../set-misc-nginx-module-0.22rc2 \
1507+ --add-module=../form-input-nginx-module-0.07rc5 \
1508+ --add-module=../encrypted-session-nginx-module-0.01 \
1509+ --add-module=../ngx_lua-0.2.1rc4 \
1510+ --add-module=../headers-more-nginx-module-0.15 \
1511+ --add-module=../srcache-nginx-module-0.12 \
1512+ --add-module=../array-var-nginx-module-0.03rc1 \
1513+ --add-module=../memc-nginx-module-0.12 \
1514+ --add-module=../redis2-nginx-module-0.07 \
1515+ --add-module=../upstream-keepalive-nginx-module-0.3 \
1516+ --add-module=../auth-request-nginx-module-0.2 \
1517+ --add-module=../rds-json-nginx-module-0.12rc1 \
1518+ --with-http_ssl_module
1519+ cd ../..
1520+ Type the following commands to build and install:
1521+ gmake
1522+ gmake install
1523+ --- makefile
1524+ .PHONY: all install clean
1525+
1526+ all:
1527+ cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) macosx
1528+ cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.2 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib LDFLAGS='-bundle -undefined dynamic_lookup' CC=gcc
1529+ cd $OPENRESTY_BUILD_DIR/nginx-1.0.5 && $(MAKE)
1530+
1531+ install:
1532+ cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
1533+ cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.2 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib LDFLAGS='-bundle -undefined dynamic_lookup' CC=gcc
1534+ cd $OPENRESTY_BUILD_DIR/nginx-1.0.5 && $(MAKE) install DESTDIR=$(DESTDIR)
1535+
1536+ clean:
1537+ rm -rf build
1538+
1539+
0 commit comments