Changes of Revision 8
[-] | Changed | nginx.spec |
x 1
2 fi 3 chmod -Rf a+rX,u+w,g-w,o-w . 4 5 +cd boringssl 6 +sed -i \ 7 + -e 's:-ggdb -std=c89:-std=c89 -march=sandybridge -O2 -pipe -fdiagnostics-color=always:' \ 8 + -e 's:-ggdb -std=c++0x:-std=c++0x -march=sandybridge -O2 -pipe -fdiagnostics-color=always:' \ 9 + -e '/^add_subdirectory(ssl\/test)/d' \ 10 + -e '/^add_subdirectory(tool)/d' \ 11 + CMakeLists.txt 12 +mkdir build && cd build && cmake ../ && make && cd .. 13 +mkdir -p .compat/lib && cd .compat && ln -s ../include && cp -a ../build/{crypto/libcrypto.a,ssl/libssl.a} lib/ && cd .. 14 +cd .. 15 + 16 + 17 + 18 + 19 %endif 20 21 22
23 --with-threads \ 24 --with-debug \ 25 --with-ipv6 \ 26 - --with-cc-opt="%{optflags} $(pcre-config --cflags)" \ 27 + --with-cc-opt="%{optflags} $(pcre-config --cflags) -I ../boringssl/.compat/include -I/usr/include" \ 28 + --with-ld-opt="-L ../boringssl/.compat/lib -L/usr/lib" \ 29 --with-openssl=%{_builddir}/nginx-%{version}/boringssl \ 30 --with-file-aio \ 31 --add-module=%{_builddir}/nginx-%{version}/Nginx-limit-traffic-rate-module \ 32 |