From f8af5af088e290a8efbdec0998ca11e4b6a65efb Mon Sep 17 00:00:00 2001 From: Mark Asselstine Date: Fri, 22 Jul 2016 14:12:30 -0400 Subject: 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 Signed-off-by: Bruce Ashfield --- classes/ruby.bbclass | 1 + 1 file changed, 1 insertion(+) 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 system("perl -p -i -e 's#^arch_hdrdir.*#arch_hdrdir = ${sysroot_ruby}/\\\\\$(arch)#' Makefile") system("perl -p -i -e 's#^arch =.*#arch = ${ruby_arch}#' Makefile") system("perl -p -i -e 's#^LIBPATH =.*#LIBPATH = -L.#' Makefile") + system("perl -p -i -e 's#^dldflags =.*#dldflags = ${LDFLAGS}#' Makefile") EOF } -- cgit v1.2.3-54-g00ecf