diff mbox

[oe,meta-oe,38/49] fribidi: Fix build with security flags turned on

Message ID 20161123092209.23699-38-raj.khem@gmail.com
State Accepted
Commit 1c8afeed179495a53e7b782b994e4a1f00f15536
Headers show

Commit Message

Khem Raj Nov. 23, 2016, 9:21 a.m. UTC
Clang complains like below
| ../../fribidi-0.19.7/charset/fribidi-char-sets-cap-rtl.c:148:7: error: expected expression
|       DBG ("warning: could not find a mapping for CapRTL to Unicode:");

Therefore quick fix is to remove FORTIFY_SOURCE from cmdline

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta-oe/recipes-devtools/libfribidi/fribidi_0.19.7.bb | 1 +
 1 file changed, 1 insertion(+)

-- 
2.10.2

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

Patch

diff --git a/meta-oe/recipes-devtools/libfribidi/fribidi_0.19.7.bb b/meta-oe/recipes-devtools/libfribidi/fribidi_0.19.7.bb
index f8e7aa0..e79de66 100644
--- a/meta-oe/recipes-devtools/libfribidi/fribidi_0.19.7.bb
+++ b/meta-oe/recipes-devtools/libfribidi/fribidi_0.19.7.bb
@@ -10,6 +10,7 @@  DEPENDS = "glib-2.0 libpcre"
 inherit autotools lib_package pkgconfig
 
 CFLAGS_append = "  -DPAGE_SIZE=4096 "
+SECURITY_CFLAGS_remove_toolchain-clang = "-D_FORTIFY_SOURCE=2"
 
 SRC_URI = "http://fribidi.org/download/fribidi-${PV}.tar.bz2"