[oe] [meta-webserver][PATCH 1/2] nginx: add the LDFLAGS to the link arguments

Derek Straka derek at asterius.io
Wed Aug 10 02:06:32 UTC 2016


Signed-off-by: Derek Straka <derek at asterius.io>
---
 meta-webserver/recipes-httpd/nginx/nginx.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-webserver/recipes-httpd/nginx/nginx.inc b/meta-webserver/recipes-httpd/nginx/nginx.inc
index ebf926a..167dc5a 100644
--- a/meta-webserver/recipes-httpd/nginx/nginx.inc
+++ b/meta-webserver/recipes-httpd/nginx/nginx.inc
@@ -41,6 +41,9 @@ do_configure () {
 	echo $CFLAGS
 	echo $LDFLAGS
 
+	# Add the LDFLAGS to the main nginx link to avoid issues with missing GNU_HASH
+	echo "MAIN_LINK=\"\${MAIN_LINK} ${LDFLAGS}\"" >> auto/cc/conf
+
 	./configure \
 	--crossbuild=Linux:${TUNE_ARCH} \
 	--with-endian=${@base_conditional('SITEINFO_ENDIANNESS', 'le', 'little', 'big', d)} \
-- 
1.9.1




More information about the Openembedded-devel mailing list