protobuf: Fix QA error for GNU_HASH

Add LDFLAGS to examples makefile to pass default ld flags.

"ERROR: protobuf-3.0.0-r0 do_package_qa: QA Issue: No GNU_HASH in the
elf binary: '.../protobuf/3.0.0-r0/packages-split/protobuf-ptest/usr/
lib/protobuf/ptest/add_person_cpp'"

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
He Zhe 2016-10-20 10:49:17 +08:00 committed by Bruce Ashfield
parent d55a579938
commit b2f38526a1

View File

@ -36,7 +36,7 @@ do_compile() {
do_compile_ptest() {
# Modify makefile to use the cross-compiler
sed -e "s|c++|${CXX}|g" -i "${S}/${TEST_SRC_DIR}/Makefile"
sed -e "s|c++|${CXX} \$(LDFLAGS)|g" -i "${S}/${TEST_SRC_DIR}/Makefile"
mkdir -p "${B}/${TEST_SRC_DIR}"