From patchwork Mon Jan 7 09:16:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: libpcre: set BUILD_CFLAGS Date: Mon, 07 Jan 2013 09:16:47 -0000 From: Giuseppe CONDORELLI X-Patchwork-Id: 42225 Message-Id: <1357550207-19933-1-git-send-email-giuseppe.condorelli@st.com> To: openembedded-core@lists.openembedded.org Set LINK_SIZE in BUILD_CFLAGS given that the autotools bbclass use it to set CFLAG_FOR_BUILD, required for the libpcre build. Signed-off-by: Giuseppe Condorelli --- meta/recipes-support/libpcre/libpcre_8.32.bb | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/meta/recipes-support/libpcre/libpcre_8.32.bb b/meta/recipes-support/libpcre/libpcre_8.32.bb index e434d55..361e9f0 100644 --- a/meta/recipes-support/libpcre/libpcre_8.32.bb +++ b/meta/recipes-support/libpcre/libpcre_8.32.bb @@ -34,8 +34,9 @@ EXTRA_OECONF = "\ --with-match-limit=10000000 \ " -BUILD_CPPFLAGS += "-DLINK_SIZE=2" -BUILD_CFLAGS =+ "-I${S}/include" +# Set LINK_SIZE in BUILD_CFLAGS given that the autotools bbclass use it to +# set CFLAG_FOR_BUILD, required for the libpcre build. +BUILD_CFLAGS =+ "-DLINK_SIZE=2 -I${S}/include" CFLAGS += "-D_REENTRANT" CXXFLAGS_append_powerpc = " -lstdc++"