yocto: use LDFLAGS if defined in build environment
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Mon, 29 Aug 2016 13:16:13 +0000 (15:16 +0200)
committerDave Thaler <dthaler@microsoft.com>
Tue, 30 Aug 2016 17:13:06 +0000 (17:13 +0000)
commit82c95d3ba9fb607980981dfb56e8bd9515609454
treef872b262dba9658fca25620d9e1b08949777e6e3
parent0a15d13e8aac857a4a4dfd58dc655cb44d890439
yocto: use LDFLAGS if defined in build environment

Without this change, extra flags like "--hash-style=gnu"
 will be ignored and quality checks will fail.

Reported message is:
  ERROR: iotivity-* do_package_qa: QA Issue:
  No GNU_HASH in the elf binary:
  '*/samples/opt/iotivity/examples/plugins/zigbee/iotivityandzigbeeserver'
  (...)
  ERROR: iotivity-* do_package_qa: QA run found fatal errors. Please consider fixing them.
  ERROR: iotivity-* do_package_qa: Function failed: do_package_qa
  (...)
  Summary: There were 8 ERROR messages shown, returning a non-zero exit code.

Bug: https://lists.yoctoproject.org/pipermail/yocto/2016-August/031442.html
Bug-AGL: https://jira.automotivelinux.org/browse/SPEC-158
Change-Id: Ifa240817c768df3a7d154d36b699de8ca0f0307a
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11073
Reviewed-by: Kishen Maloor <kishen.maloor@intel.com>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Tested-by: Dave Thaler <dthaler@microsoft.com>
build_common/SConscript