summaryrefslogtreecommitdiffstats
path: root/meta-multimedia
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-06-02 21:58:30 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-06-12 06:56:44 +0200
commit4de601006dddbf50501aeaae7f53d2497964a082 (patch)
treed977584bccb7eded788d8ce213aa0910d9267afc /meta-multimedia
parent221ebebd4a2e122c051107b167378dc4f9ad3dbf (diff)
downloadmeta-openembedded-4de601006dddbf50501aeaae7f53d2497964a082.tar.gz
caps: Fix buld with -pie
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-multimedia')
-rw-r--r--meta-multimedia/recipes-multimedia/caps/caps/append_ldflags.patch18
-rw-r--r--meta-multimedia/recipes-multimedia/caps/caps_0.9.24.bb1
2 files changed, 19 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/caps/caps/append_ldflags.patch b/meta-multimedia/recipes-multimedia/caps/caps/append_ldflags.patch
new file mode 100644
index 000000000..3abd38189
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/caps/caps/append_ldflags.patch
@@ -0,0 +1,18 @@
1Change the order of linker flags such that -shared is appearig after -pie/-fpie
2this helps in building the package when secuiry flags are enabled
3
4-Khem
5
6Index: caps-0.9.24/Makefile
7===================================================================
8--- caps-0.9.24.orig/Makefile
9+++ caps-0.9.24/Makefile
10@@ -14,7 +14,7 @@ STRIP = strip
11 -include defines.make
12
13 CFLAGS += $(OPTS) $(_CFLAGS)
14-LDFLAGS += $(_LDFLAGS) $(CFLAGS)
15+LDFLAGS += $(CFLAGS) $(_LDFLAGS)
16
17 PLUG = caps
18
diff --git a/meta-multimedia/recipes-multimedia/caps/caps_0.9.24.bb b/meta-multimedia/recipes-multimedia/caps/caps_0.9.24.bb
index 90a28360c..d7887635e 100644
--- a/meta-multimedia/recipes-multimedia/caps/caps_0.9.24.bb
+++ b/meta-multimedia/recipes-multimedia/caps/caps_0.9.24.bb
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
6SRC_URI = "http://quitte.de/dsp/${PN}_${PV}.tar.bz2 \ 6SRC_URI = "http://quitte.de/dsp/${PN}_${PV}.tar.bz2 \
7 file://Avoid-ambiguity-in-div-invocation.patch \ 7 file://Avoid-ambiguity-in-div-invocation.patch \
8 file://0001-basic.h-Use-c99-supported-stdint-types.patch \ 8 file://0001-basic.h-Use-c99-supported-stdint-types.patch \
9 file://append_ldflags.patch \
9 " 10 "
10 11
11SRC_URI[md5sum] = "c1d634038dcb54702306c0e30cb1c626" 12SRC_URI[md5sum] = "c1d634038dcb54702306c0e30cb1c626"