Added `--with-openssl-src` to configure script #167

Merged
merged 4 commits into from Apr 25, 2016

Projects

None yet

2 participants

@rhykw
Contributor
rhykw commented Apr 20, 2016

refs: #165

To build mrbgems and nginx with same openssl.

usage:

./configure \
--with-openssl-src=$HOME/tmp/openssl-1.0.2g \
--with-openssl-opt="no-zlib" \
--with-ngx-src-root=$HOME/tmp/nginx-1.9.15 \
--with-ngx-config-opt="--prefix=/usr/local --with-http_ssl_module"

make
@matsumotory
Owner

@rhykw Thank you for your PR. I have some questions.

  • Did you consider ngx_mruby don't use mruby-digest?
  • This PR supports some build process like this?
  • How dose mruby-digest find correct path of openssl library don't change the mruby-digest/mrbgem.rake?
@rhykw
Contributor
rhykw commented Apr 25, 2016

@matsumoto-r

  • Did you consider ngx_mruby don't use mruby-digest?
  • How dose mruby-digest find correct path of openssl library don't change the mruby-digest/mrbgem.rake?

GCC is searching libraries in LDFLAGS and CFLAGS.

in mruby/tasks/toolchains/gcc.rake

    cc.flags = [ENV['CFLAGS'] || %w(-g -std=gnu99 -O3 -Wall -Werror-implicit-function-declaration -Wdeclaration-after-statement -Wwrite-strings)]
    linker.flags = [ENV['LDFLAGS'] || %w()]

  • This PR supports some build process like this?

usage with build.sh:

NGINX_CONFIG_OPT_ENV='--prefix=/usr/local/nginx --with-http_ssl_module' \ NGINX_SRC_ENV=$HOME/tmp/nginx-1.9.15 \
sh build.sh --with-openssl-src=$HOME/tmp/openssl-1.0.2g --with-openssl-opt="no-zlib"
@rhykw
Contributor
rhykw commented Apr 25, 2016
@matsumotory
Owner

Great works!! Merged now.

@matsumotory matsumotory merged commit ebc9502 into matsumotory:master Apr 25, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@rhykw rhykw deleted the rhykw:add_with_openssl branch Apr 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment