1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 17:39:31 +00:00

directfb: Correct bashism

Fix builds of directfb on systems with dash as /bin/sh

(From OE-Core rev: 8848517fb4c81b9e9cfc985dd20b9baf374764c0)

(From OE-Core rev: 493ecc520202851bba664eaf4f1150ce624bf2b1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2015-05-03 11:28:22 +01:00
parent f0d6f7fe95
commit 3b8170562c
2 changed files with 20 additions and 1 deletions
+2 -1
View File
@@ -13,7 +13,8 @@ DEPENDS = "jpeg libpng freetype zlib tslib sysfsutils"
SRC_URI = "http://www.directfb.org/downloads/Core/DirectFB-1.7/DirectFB-${PV}.tar.gz \
file://configurefix.patch \
file://fusion.patch"
file://fusion.patch \
file://bashism.patch"
S = "${WORKDIR}/DirectFB-${PV}"
@@ -0,0 +1,18 @@
${x//y/} is a bash syntax. Replace with something dash compatible
RP 2015/5/3
Upstream-Status: Pending
Index: DirectFB-1.7.7/configure.in
===================================================================
--- DirectFB-1.7.7.orig/configure.in
+++ DirectFB-1.7.7/configure.in
@@ -2696,7 +2696,7 @@ AM_CONDITIONAL(BUILD_TOOLS, test "$with_
AM_CONDITIONAL(CROSS_COMPILING, test "$cross_compiling" = "yes")
CFLAGS="$CFLAGS $DFB_INTERNAL_CFLAGS"
-CXXFLAGS="$CXXFLAGS ${CFLAGS//-Werror-implicit-function-declaration/}"
+CXXFLAGS="$CXXFLAGS $(printf '%s\n' "$CFLAGS" | sed 's/-Werror-implicit-function-declaration//g')"
DFB_LDFLAGS="$LDFLAGS $ZLIB_LIBS"
CFLAGS="$CFLAGS $CFLAGS_STD"