diff options
author | Martin Bark <martin@barkynet.com> | 2016-05-09 12:29:00 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-05-13 23:04:40 +0200 |
commit | e0c8e18ed13edd2c75e6c7b62c27c336798b93b3 (patch) | |
tree | 93fcf97901642da29eed23cf0961cd01e492db22 | |
parent | 285f648658c4029e33bbe52a214524396ce1d226 (diff) | |
download | buildroot-e0c8e18ed13edd2c75e6c7b62c27c336798b93b3.tar.gz buildroot-e0c8e18ed13edd2c75e6c7b62c27c336798b93b3.zip |
package/nginx: fix openssl support
Change to using pkg-config to find openssl and its dependencies.
This fixes:
http://autobuild.buildroot.net/results/17db76c3a099e7592af343bbe119dfe717cd7999/
Signed-off-by: Martin Bark <martin@barkynet.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/nginx/0006-auto-lib-openssl-conf-use-pkg-config.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/package/nginx/0006-auto-lib-openssl-conf-use-pkg-config.patch b/package/nginx/0006-auto-lib-openssl-conf-use-pkg-config.patch new file mode 100644 index 0000000000..494e6f41ed --- /dev/null +++ b/package/nginx/0006-auto-lib-openssl-conf-use-pkg-config.patch @@ -0,0 +1,31 @@ +From 756556d127da291cad8a2c007a89124a692aef7f Mon Sep 17 00:00:00 2001 +From: Martin Bark <martin@barkynet.com> +Date: Fri, 6 May 2016 14:48:31 +0100 +Subject: [PATCH 6/8] auto/lib/openssl/conf: use pkg-config + +Change to using pkg-config to find the path to openssl and its +dependencies. + +Signed-off-by: Martin Bark <martin@barkynet.com> +--- + auto/lib/openssl/conf | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/auto/lib/openssl/conf b/auto/lib/openssl/conf +index 39d9602..995c6f3 100644 +--- a/auto/lib/openssl/conf ++++ b/auto/lib/openssl/conf +@@ -50,8 +50,8 @@ else + ngx_feature_name="NGX_OPENSSL" + ngx_feature_run=no + ngx_feature_incs="#include <openssl/ssl.h>" +- ngx_feature_path= +- ngx_feature_libs="-lssl -lcrypto $NGX_LIBDL" ++ ngx_feature_path="$(${PKG_CONFIG:=pkg-config} --cflags-only-I openssl|sed 's/-I//g')" ++ ngx_feature_libs="$(${PKG_CONFIG:=pkg-config} --libs openssl)" + ngx_feature_test="SSL_CTX_set_options(NULL, 0)" + . auto/feature + +-- +2.8.2 + |