From 67e0959f332937e70c9766caab6104e13ddd0619 Mon Sep 17 00:00:00 2001 From: Jens Rehsack Date: Wed, 14 Oct 2015 20:50:51 +0200 Subject: nginx: fix broken proxy_pass feature [NGINX ticket #748 - https://trac.nginx.org/nginx/ticket/748] Accoriding to #748 or https://github.com/archlinuxarm/PKGBUILDs/issues/1161, respectively, proxy_pass is broken on some architectures without position independent code. The solution is adding -fPIE -pie as build flags. Signed-off-by: Jens Rehsack Signed-off-by: Martin Jansa --- meta-webserver/recipes-httpd/nginx/nginx_1.4.4.bb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta-webserver') diff --git a/meta-webserver/recipes-httpd/nginx/nginx_1.4.4.bb b/meta-webserver/recipes-httpd/nginx/nginx_1.4.4.bb index 0dfdb5b86a..27e4749d6d 100644 --- a/meta-webserver/recipes-httpd/nginx/nginx_1.4.4.bb +++ b/meta-webserver/recipes-httpd/nginx/nginx_1.4.4.bb @@ -24,6 +24,9 @@ SRC_URI[sha256sum] = "7c989a58e5408c9593da0bebcd0e4ffc3d892d1316ba5042ddb0be5b0b inherit update-rc.d useradd +CFLAGS_append = " -fPIE -pie" +CXXFLAGS_append = " -fPIE -pie" + do_configure () { if [ "${SITEINFO_BITS}" = "64" ]; then PTRSIZE=8 -- cgit 1.2.3-korg