diff options
-rw-r--r-- | meta/recipes-kernel/libpfm/files/0001-Makefile-Add-LDFLAGS-variable-to-SLDFLAGS.patch | 31 | ||||
-rw-r--r-- | meta/recipes-kernel/libpfm/libpfm4_4.6.0.bb | 4 |
2 files changed, 34 insertions, 1 deletions
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 0000000000..be58706e3a --- /dev/null +++ b/meta/recipes-kernel/libpfm/files/0001-Makefile-Add-LDFLAGS-variable-to-SLDFLAGS.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 272a8a069a8f5f06a1e5dfa0ef12f5f92984728b Mon Sep 17 00:00:00 2001 | ||
2 | From: Noor <noor_ahsan@mentor.com> | ||
3 | Date: Wed, 12 Aug 2015 20:54:00 +0500 | ||
4 | Subject: [PATCH] Makefile: Add LDFLAGS variable to SLDFLAGS. | ||
5 | |||
6 | * Add LDFLAGS variable to SLDFLAGS so that extra linker | ||
7 | flags can be sent via this variable. | ||
8 | |||
9 | Upstream status Sumbitted [perfmon2-libpfm4-commits@lists.sourceforge.net] | ||
10 | |||
11 | Signed-off-by: Noor Ahsan <noor_ahsan@mentor.com> | ||
12 | --- | ||
13 | lib/Makefile | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/lib/Makefile b/lib/Makefile | ||
17 | index 1cc8765..4bd92ef 100644 | ||
18 | --- a/lib/Makefile | ||
19 | +++ b/lib/Makefile | ||
20 | @@ -187,7 +187,7 @@ CFLAGS += -DCONFIG_PFMLIB_CELL | ||
21 | endif | ||
22 | |||
23 | ifeq ($(SYS),Linux) | ||
24 | -SLDFLAGS=-shared -Wl,-soname -Wl,$(VLIBPFM) | ||
25 | +SLDFLAGS=$(LDFLAGS) -shared -Wl,-soname -Wl,$(VLIBPFM) | ||
26 | SLIBPFM=libpfm.so.$(VERSION).$(REVISION).$(AGE) | ||
27 | VLIBPFM=libpfm.so.$(VERSION) | ||
28 | SOLIBEXT=so | ||
29 | -- | ||
30 | 1.7.9.5 | ||
31 | |||
diff --git a/meta/recipes-kernel/libpfm/libpfm4_4.6.0.bb b/meta/recipes-kernel/libpfm/libpfm4_4.6.0.bb index b66fbd140a..2dfda90b91 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" | |||
12 | 12 | ||
13 | COMPATIBLE_HOST = "powerpc64" | 13 | COMPATIBLE_HOST = "powerpc64" |
14 | 14 | ||
15 | SRC_URI = "http://downloads.sourceforge.net/project/perfmon2/${BPN}/libpfm-${PV}.tar.gz" | 15 | SRC_URI = "http://downloads.sourceforge.net/project/perfmon2/${BPN}/libpfm-${PV}.tar.gz \ |
16 | file://0001-Makefile-Add-LDFLAGS-variable-to-SLDFLAGS.patch \ | ||
17 | " | ||
16 | 18 | ||
17 | SRC_URI[md5sum] = "5077b9022440e4951d96f2d0e73bd487" | 19 | SRC_URI[md5sum] = "5077b9022440e4951d96f2d0e73bd487" |
18 | SRC_URI[sha256sum] = "5ab1e5b0472550f9037a8800834f6bc3b927690070f69fac0b67284b4b05fd5f" | 20 | SRC_URI[sha256sum] = "5ab1e5b0472550f9037a8800834f6bc3b927690070f69fac0b67284b4b05fd5f" |