diff mbox series

[oe,meta-multimedia,1/4] caps: Fix buld with -pie

Message ID 20170603045833.8120-1-raj.khem@gmail.com
State New
Headers show
Series [oe,meta-multimedia,1/4] caps: Fix buld with -pie | expand

Commit Message

Khem Raj June 3, 2017, 4:58 a.m. UTC
Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 .../recipes-multimedia/caps/caps/append_ldflags.patch  | 18 ++++++++++++++++++
 meta-multimedia/recipes-multimedia/caps/caps_0.9.24.bb |  1 +
 2 files changed, 19 insertions(+)
 create mode 100644 meta-multimedia/recipes-multimedia/caps/caps/append_ldflags.patch

-- 
2.13.0

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Comments

Armin Kuster June 3, 2017, 3:21 p.m. UTC | #1
On 06/02/2017 09:58 PM, Khem Raj wrote:
> Signed-off-by: Khem Raj <raj.khem@gmail.com>

> ---

>   .../recipes-multimedia/caps/caps/append_ldflags.patch  | 18 ++++++++++++++++++

>   meta-multimedia/recipes-multimedia/caps/caps_0.9.24.bb |  1 +

>   2 files changed, 19 insertions(+)

>   create mode 100644 meta-multimedia/recipes-multimedia/caps/caps/append_ldflags.patch

>

> 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 @@

> +Change the order of linker flags such that -shared is appearig after -pie/-fpie

> +this helps in building the package when secuiry flags are enabled

> +

> +-Khem

Missing Upstream-Status and Signed-off-by

- armin
> +

> +Index: caps-0.9.24/Makefile

> +===================================================================

> +--- caps-0.9.24.orig/Makefile

> ++++ caps-0.9.24/Makefile

> +@@ -14,7 +14,7 @@ STRIP = strip

> + -include defines.make

> +

> + CFLAGS += $(OPTS) $(_CFLAGS)

> +-LDFLAGS += $(_LDFLAGS) $(CFLAGS)

> ++LDFLAGS += $(CFLAGS) $(_LDFLAGS)

> +

> + PLUG = caps

> +

> 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"

>   SRC_URI = "http://quitte.de/dsp/${PN}_${PV}.tar.bz2 \

>              file://Avoid-ambiguity-in-div-invocation.patch \

>              file://0001-basic.h-Use-c99-supported-stdint-types.patch \

> +           file://append_ldflags.patch \

>              "

>   

>   SRC_URI[md5sum] = "c1d634038dcb54702306c0e30cb1c626"


-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox series

Patch

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 @@ 
+Change the order of linker flags such that -shared is appearig after -pie/-fpie
+this helps in building the package when secuiry flags are enabled
+
+-Khem
+
+Index: caps-0.9.24/Makefile
+===================================================================
+--- caps-0.9.24.orig/Makefile
++++ caps-0.9.24/Makefile
+@@ -14,7 +14,7 @@ STRIP = strip
+ -include defines.make
+ 
+ CFLAGS += $(OPTS) $(_CFLAGS)
+-LDFLAGS += $(_LDFLAGS) $(CFLAGS)
++LDFLAGS += $(CFLAGS) $(_LDFLAGS)
+ 
+ PLUG = caps
+ 
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"
 SRC_URI = "http://quitte.de/dsp/${PN}_${PV}.tar.bz2 \
            file://Avoid-ambiguity-in-div-invocation.patch \
            file://0001-basic.h-Use-c99-supported-stdint-types.patch \
+           file://append_ldflags.patch \
            "
 
 SRC_URI[md5sum] = "c1d634038dcb54702306c0e30cb1c626"