Skip to content

Instantly share code, notes, and snippets.

@phoenixxie0
Last active October 20, 2018 12:55
Show Gist options
  • Save phoenixxie0/002c2b7d6436e85701d80a29393ef523 to your computer and use it in GitHub Desktop.
Save phoenixxie0/002c2b7d6436e85701d80a29393ef523 to your computer and use it in GitHub Desktop.
haproxy编译脚本
#!/bin/sh
make -j2 TARGET=linux2628 ARCH="64" CPU=native CFLAGS="-g -O3 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2" USE_ZLIB=1 USE_REGPARM=1 USE_OPENSSL=1 ADDLIB=-ldl USE_STATIC_PCRE=1 USE_PCRE_JIT=1 USE_THREAD=1 USE_PTHREAD_PSHARED=1 USE_TFO=1 USE_GETADDRINFO=1 USE_NS=1 USE_SYSTEMD=1 PREFIX=/opt SSL_LIB=/usr/local/lib
mv -f /opt/sbin/haproxy /opt/sbin/haproxy.old && cp ./haproxy /opt/sbin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment