[yocto] [meta-oic][PATCH 1/3] iotivity-simple-client: Use regular LDFLAGS variable

Philippe Coval philippe.coval at osg.samsung.com
Wed Sep 14 07:09:19 PDT 2016


This has been tested with iotivity-1.1.1
 but also applies to earlier versions.

Without this, QA check is failing and this message is reported:

  do_package_qa: QA Issue: No GNU_HASH in the elf binary:
  (...)
  iotivity-simple-client/simpleclient' [ldflags]

Change-Id: Ib77c70331b1aaba193bc32bcd190f939d9456dc4
Bug: https://jira.iotivity.org/browse/IOT-1111
Cc: iotivity-dev at lists.iotivity.org
Cc: yocto at yoctoproject.org
Origin: https://github.com/tizenteam/meta-oic
Signed-off-by: Philippe Coval <philippe.coval at osg.samsung.com>
---
 .../0001-build-Use-LDFLAGS-variable-from-env.patch | 35 ++++++++++++++++++++++
 .../iotivity-simple-client_1.1.0.bb                |  3 +-
 2 files changed, 37 insertions(+), 1 deletion(-)
 create mode 100644 recipes-apps/iotivity-simple-client/files/0001-build-Use-LDFLAGS-variable-from-env.patch

diff --git a/recipes-apps/iotivity-simple-client/files/0001-build-Use-LDFLAGS-variable-from-env.patch b/recipes-apps/iotivity-simple-client/files/0001-build-Use-LDFLAGS-variable-from-env.patch
new file mode 100644
index 0000000..e121ddd
--- /dev/null
+++ b/recipes-apps/iotivity-simple-client/files/0001-build-Use-LDFLAGS-variable-from-env.patch
@@ -0,0 +1,35 @@
+From c513e8e44345d7fff2a38ef5ddb108d513a40ae7 Mon Sep 17 00:00:00 2001
+From: Philippe Coval <philippe.coval at osg.samsung.com>
+Date: Tue, 13 Sep 2016 17:14:03 +0200
+Subject: [PATCH] build: Use LDFLAGS variable from env
+
+Without this, QA check is failing and this message is reported:
+
+  do_package_qa: QA Issue: No GNU_HASH in the elf binary:
+  (...)
+  'iotivity-simple-client/simpleclient' [ldflags]
+
+Change-Id: Id22e5358f75b46861cf0dfb7b2af267dbe7d7014
+Bug: https://jira.iotivity.org/browse/IOT-1111
+Origin: https://github.com/TizenTeam/meta-oic
+Signed-off-by: Philippe Coval <philippe.coval at osg.samsung.com>
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 9323169..2389f43 100644
+--- a/Makefile
++++ b/Makefile
+@@ -12,7 +12,7 @@ endif
+ 	$(CXX) -std=c++0x -c -o $@ $< $(YOCTOCXXFLAGS)
+ 
+ simpleclient: simpleclient.o
+-	$(CXX) -o simpleclient simpleclient.o $(YOCTOLDFLAGS)
++	$(CXX) -o $@ $^ $(LDFLAGS) $(YOCTOLDFLAGS)
+ 
+ clean:
+ 	rm -rf simpleclient *.o
+-- 
+1.9.1
+
diff --git a/recipes-apps/iotivity-simple-client/iotivity-simple-client_1.1.0.bb b/recipes-apps/iotivity-simple-client/iotivity-simple-client_1.1.0.bb
index a01f58e..caf02f8 100644
--- a/recipes-apps/iotivity-simple-client/iotivity-simple-client_1.1.0.bb
+++ b/recipes-apps/iotivity-simple-client/iotivity-simple-client_1.1.0.bb
@@ -7,7 +7,8 @@ LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://simpleclient.cpp;beginline=1;endline=19;md5=fc5a615cf1dc3880967127bc853b3e0c"
 
 SRC_URI = "file://iotivity-simple-client.tar.bz2 \
-          "
+        file://0001-build-Use-LDFLAGS-variable-from-env.patch \
+        "
 
 S = "${WORKDIR}/iotivity-simple-client"
 
-- 
1.9.1




More information about the yocto mailing list