[oe-commits] Noor : libpfm4: Fix GNU_HASH warning.

git at git.openembedded.org git at git.openembedded.org
Sun Aug 16 16:29:40 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 6bf2743a967ede08d19f9ca1f72e36e806e92fb0
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=6bf2743a967ede08d19f9ca1f72e36e806e92fb0

Author: Noor <noor_ahsan at mentor.com>
Date:   Thu Aug 13 16:43:14 2015 +0500

libpfm4: Fix GNU_HASH warning.

* Add a patch which updated add LDFLAGS variable to SLDFLAGS
  in Makefile.

Signed-off-by: Noor Ahsan <noor_ahsan at mentor.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>

---

 ...Makefile-Add-LDFLAGS-variable-to-SLDFLAGS.patch | 31 ++++++++++++++++++++++
 meta/recipes-kernel/libpfm/libpfm4_4.6.0.bb        |  4 ++-
 2 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/libpfm/files/0001-Makefile-Add-LDFLAGS-variable-to-SLDFLAGS.patch b/meta/recipes-kernel/libpfm/files/0001-Makefile-Add-LDFLAGS-variable-to-SLDFLAGS.patch
new file mode 100644
index 0000000..be58706
--- /dev/null
+++ b/meta/recipes-kernel/libpfm/files/0001-Makefile-Add-LDFLAGS-variable-to-SLDFLAGS.patch
@@ -0,0 +1,31 @@
+From 272a8a069a8f5f06a1e5dfa0ef12f5f92984728b Mon Sep 17 00:00:00 2001
+From: Noor <noor_ahsan at mentor.com>
+Date: Wed, 12 Aug 2015 20:54:00 +0500
+Subject: [PATCH] Makefile: Add LDFLAGS variable to SLDFLAGS.
+
+* Add LDFLAGS variable to SLDFLAGS so that extra linker
+  flags can be sent via this variable.
+
+Upstream status Sumbitted [perfmon2-libpfm4-commits at lists.sourceforge.net]
+
+Signed-off-by: Noor Ahsan <noor_ahsan at mentor.com>
+---
+ lib/Makefile |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/Makefile b/lib/Makefile
+index 1cc8765..4bd92ef 100644
+--- a/lib/Makefile
++++ b/lib/Makefile
+@@ -187,7 +187,7 @@ CFLAGS += -DCONFIG_PFMLIB_CELL
+ endif
+ 
+ ifeq ($(SYS),Linux)
+-SLDFLAGS=-shared -Wl,-soname -Wl,$(VLIBPFM)
++SLDFLAGS=$(LDFLAGS) -shared -Wl,-soname -Wl,$(VLIBPFM)
+ SLIBPFM=libpfm.so.$(VERSION).$(REVISION).$(AGE)
+ VLIBPFM=libpfm.so.$(VERSION)
+ SOLIBEXT=so
+-- 
+1.7.9.5
+
diff --git a/meta/recipes-kernel/libpfm/libpfm4_4.6.0.bb b/meta/recipes-kernel/libpfm/libpfm4_4.6.0.bb
index b66fbd1..2dfda90 100644
--- a/meta/recipes-kernel/libpfm/libpfm4_4.6.0.bb
+++ b/meta/recipes-kernel/libpfm/libpfm4_4.6.0.bb
@@ -12,7 +12,9 @@ SECTION = "devel"
 
 COMPATIBLE_HOST = "powerpc64"
 
-SRC_URI = "http://downloads.sourceforge.net/project/perfmon2/${BPN}/libpfm-${PV}.tar.gz"
+SRC_URI = "http://downloads.sourceforge.net/project/perfmon2/${BPN}/libpfm-${PV}.tar.gz \
+           file://0001-Makefile-Add-LDFLAGS-variable-to-SLDFLAGS.patch \
+          "
 
 SRC_URI[md5sum] = "5077b9022440e4951d96f2d0e73bd487"
 SRC_URI[sha256sum] = "5ab1e5b0472550f9037a8800834f6bc3b927690070f69fac0b67284b4b05fd5f"



More information about the Openembedded-commits mailing list