aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Rehsack <rehsack@gmail.com>2015-10-14 20:50:51 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2015-10-23 12:53:23 +0200
commit67e0959f332937e70c9766caab6104e13ddd0619 (patch)
treeb06eeafd4b26fff32654a9d1ce185b2a0a66e3c6
parent79f44c65ce02e3f3d9b19c81c3fe82feaaeb4da7 (diff)
downloadmeta-openembedded-contrib-67e0959f332937e70c9766caab6104e13ddd0619.tar.gz
meta-openembedded-contrib-67e0959f332937e70c9766caab6104e13ddd0619.tar.bz2
meta-openembedded-contrib-67e0959f332937e70c9766caab6104e13ddd0619.zip
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 <sno@netbsd.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta-webserver/recipes-httpd/nginx/nginx_1.4.4.bb3
1 files changed, 3 insertions, 0 deletions
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