summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2016-07-22 14:12:30 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2016-07-24 23:08:07 -0400
commitf8af5af088e290a8efbdec0998ca11e4b6a65efb (patch)
treefe1149b0243627a5a84f7cdc0dfeaffcb2b2c096
parentc57fd9dbadfaee0ac16962448a9cf432f99a9f78 (diff)
downloadmeta-cloud-services-f8af5af088e290a8efbdec0998ca11e4b6a65efb.tar.gz
ruby.bbclass: pass LDFLAGS via dldflags to avoid QA warnings
Ruby makes use of the lesser known DLDFLAGS to compose flags passed to the linker. Since DLDFLAGS is composed of arch, ldflags and dldflags instead of overwriting DLDFLAGS we drop the correct flags into dldflags. (lowercase vs uppercase) This will avoid the following QA warnings, such as: No GNU_HASH in the elf binary: './tmp/work/core2-64-overc-linux/ruby-shadow/2.4.1-r0/packages-split/ruby-shadow/usr/lib64/ruby/gems/2.2.0/gems/ruby-shadow-2.4.1/lib/shadow.so' No GNU_HASH in the elf binary: './tmp/work/core2-64-overc-linux/ruby-shadow/2.4.1-r0/packages-split/ruby-shadow/usr/lib64/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0/ruby-shadow-2.4.1/shadow.so' [ldflags] Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r--classes/ruby.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/ruby.bbclass b/classes/ruby.bbclass
index bc82ca9..dc19166 100644
--- a/classes/ruby.bbclass
+++ b/classes/ruby.bbclass
@@ -101,6 +101,7 @@ EOF
101 system("perl -p -i -e 's#^arch_hdrdir.*#arch_hdrdir = ${sysroot_ruby}/\\\\\$(arch)#' Makefile") 101 system("perl -p -i -e 's#^arch_hdrdir.*#arch_hdrdir = ${sysroot_ruby}/\\\\\$(arch)#' Makefile")
102 system("perl -p -i -e 's#^arch =.*#arch = ${ruby_arch}#' Makefile") 102 system("perl -p -i -e 's#^arch =.*#arch = ${ruby_arch}#' Makefile")
103 system("perl -p -i -e 's#^LIBPATH =.*#LIBPATH = -L.#' Makefile") 103 system("perl -p -i -e 's#^LIBPATH =.*#LIBPATH = -L.#' Makefile")
104 system("perl -p -i -e 's#^dldflags =.*#dldflags = ${LDFLAGS}#' Makefile")
104EOF 105EOF
105} 106}
106 107