Skip to content

Commit

Permalink
hack: nosse42
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Jul 17, 2019
1 parent 1387f7b commit 9fdae37
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions HACK.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
1. `cd images/nginx`
1. Modify the `CC_OPTS` for the x86_64 arch to `CC_OPT+=' -m64 -mtune=core2'`
1. Add `--with-luajit-xcflags='-mno-sse4.2' \` to the `WITH_FLAGS` variable
1. `REGISTRY=julusian/nginx-ingress TAG=base-amd64 make container`
1. `docker tag julusian/nginx-ingress/nginx:base-amd64 julusian/nginx-ingress:base-amd64`
1. `docker push julusian/nginx-ingress:base-amd64`
1. `cd ../..`
1. `BASEIMAGE=julusian/nginx-ingress:base-amd64 ARCH=amd64 TAG=v0.25.0-nosse42 REGISTRY=julusian/nginx-ingress make build container`
1. `docker tag julusian/nginx-ingress/nginx-ingress-controller-amd64:v0.25.0-nosse42 julusian/nginx-ingress:v0.25.0-nosse42`
1. `docker push julusian/nginx-ingress:v0.25.0-nosse42`
3 changes: 2 additions & 1 deletion images/nginx/rootfs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ WITH_FLAGS="--with-debug \
--with-http_gunzip_module \
--with-md5-asm \
--with-sha1-asm \
--with-luajit-xcflags='-mno-sse4.2' \
-j${CORES} "

# "Combining -flto with -g is currently experimental and expected to produce unexpected results."
Expand Down Expand Up @@ -424,7 +425,7 @@ if [[ ${ARCH} != "aarch64" ]]; then
fi

if [[ ${ARCH} == "x86_64" ]]; then
CC_OPT+=' -m64 -mtune=native'
CC_OPT+=' -m64 -mtune=core2'
fi

WITH_MODULES="--add-module=$BUILD_PATH/nginx-http-auth-digest-$NGINX_DIGEST_AUTH \
Expand Down

0 comments on commit 9fdae37

Please sign in to comment.