Skip to contentSkip to conversation

wvstreams: Set optimization to -O0 to avoid breaking stack protection.

PATCH In review Søren Holm 2 participants 2 messages Apr 10, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wvstreams: Set optimization to -O0 to avoid breaking stack protection.

A description of the bug is here :
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674006

---
 meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb | 2 ++
 1 file changed, 2 insertions(+)
meta- renamed from meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb +0 -0

oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb
index ce2b337..869402b 100644

meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb +0 -0
@@ -19,6 +19,8 @@ SRC_URI[sha256sum] = 

"8403f5fbf83aa9ac0c6ce15d97fd85607488152aa84e007b7d0621b8eb
inherit autotools pkgconfig

PARALLEL_MAKE = ""
+TARGET_CFLAGS_append = " -O0"
+TARGET_CXXFLAGS_append = " -O0"

LDFLAGS_append = " -Wl,-rpath-link,${CROSS_DIR}/${TARGET_SYS}/lib"

Signature · 1 line
1.9.1
#1 lore raw
Quoted 17 lines · Søren Holm

A description of the bug is here :
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674006

---
 meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb | 2 ++
 1 file changed, 2 insertions(+)
meta- renamed from meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb +0 -0

oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb
index ce2b337..869402b 100644

meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb +0 -0
@@ -19,6 +19,8 @@ SRC_URI[sha256sum] =

"8403f5fbf83aa9ac0c6ce15d97fd85607488152aa84e007b7d0621b8eb
inherit autotools pkgconfig

PARALLEL_MAKE = ""

meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb

Quoted 2 lines
meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb +2 -0
+TARGET_CFLAGS_append = " -O0"
+TARGET_CXXFLAGS_append = " -O0"

Disabling optimizations all the way is probably a bad idea. As suggested in the bugs can you just disable
few of optimizations like

TARGET_CFLAGS += "-fno-tree-dce -fno-optimize-sibling-calls" TARGET_CXXFLAGS += "-fno-tree-dce -fno-optimize-sibling-calls"

Quoted 9 lines

LDFLAGS_append = " -Wl,-rpath-link,${CROSS_DIR}/${TARGET_SYS}/lib"

--
1.9.1
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel