ffmpeg: Pas CC and CXX to configure
PATCH 1/2 ffmpeg: Pas CC and CXX to configure
This helps in compiling it with with toolchain coming from a sstate server where its built using a different build time sysroot.
Secondly, also helps compiling with non-gcc ( clang ) compiler
Signed-off-by Khem Raj <[email protected]>
--- meta/recipes-multimedia/ffmpeg/ffmpeg_3.1.1.bb | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-multimedia/ffmpeg/ffmpeg_3.1.1.bb +2 -0
@@ -76,6 +76,8 @@ EXTRA_OECONF = " \ --cross-prefix=${TARGET_PREFIX} \ \ --ld="${CCLD}" \ + --cc="${CC}" \ + --cxx="${CXX}" \ --arch=${TARGET_ARCH} \ --target-os="linux" \ --enable-cross-compile \
Signature · 1 line
2.9.2
PATCH 2/2 libtasn1: Backport compiler warning fixes
These patches are backported from master to fix issues raised by clang compiler.
Signed-off-by Khem Raj <[email protected]>
--- ...configure-don-t-add-Werror-to-build-flags.patch | 28 +++++++++ .../0002-ASN.y-corrected-compiler-warning.patch | 28 +++++++++ ...corrected-potential-null-pointer-derefere.patch | 73 ++++++++++++++++++++++ .../0004-tools-eliminated-compiler-warnings.patch | 56 +++++++++++++++++ meta/recipes-support/gnutls/libtasn1_4.9.bb | 4 ++ 5 files changed, 189 insertions(+) create mode 100644 meta/recipes-support/gnutls/libtasn1/0001-configure-don-t-add-Werror-to-build-flags.patch create mode 100644 meta/recipes-support/gnutls/libtasn1/0002-ASN.y-corrected-compiler-warning.patch create mode 100644 meta/recipes-support/gnutls/libtasn1/0003-parser_aux-corrected-potential-null-pointer-derefere.patch create mode 100644 meta/recipes-support/gnutls/libtasn1/0004-tools-eliminated-compiler-warnings.patch
meta/recipes-support/gnutls/libtasn1/0001-configure-don-t-add-Werror-to-build-flags.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 908e9fa4c1172f09e0e45420a403dc25ed0a466c Mon Sep 17 00:00:00 2001 +From: Nikos Mavrogiannopoulos <[email protected]> +Date: Tue, 26 Jul 2016 08:45:33 +0200 +Subject: [PATCH 1/4] configure: don't add -Werror to build flags + +--- +Upstream-Status: Backport +Signed-off-by: Khem Raj <[email protected]> + + configure.ac | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 7a14e04..066f5fe 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -70,8 +70,6 @@ AC_ARG_ENABLE([gcc-warnings], + ) + + if test "$gl_gcc_warnings" = yes; then +- gl_WARN_ADD([-Werror], [WERROR_CFLAGS]) +- + nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings + nw="$nw -Wc++-compat" # We don't care strongly about C++ compilers + nw="$nw -Wtraditional" # Warns on #elif which we use often +-- +1.9.1 +
meta/recipes-support/gnutls/libtasn1/0002-ASN.y-corrected-compiler-warning.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 3542c01618fcde83b29640ea2c60bfd2629ae0b7 Mon Sep 17 00:00:00 2001 +From: Nikos Mavrogiannopoulos <[email protected]> +Date: Tue, 26 Jul 2016 08:47:49 +0200 +Subject: [PATCH 2/4] ASN.y: corrected compiler warning + +--- +Upstream-Status: Backport +Signed-off-by: Khem Raj <[email protected]> + + lib/ASN1.y | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/ASN1.y b/lib/ASN1.y +index 731415d..6db638f 100644 +--- a/lib/ASN1.y ++++ b/lib/ASN1.y +@@ -621,7 +621,7 @@ _asn1_create_errorDescription (int error, char *error_desc) + case ASN1_NAME_TOO_LONG: + snprintf (error_desc, ASN1_MAX_ERROR_DESCRIPTION_SIZE, + "%s:%u: name too long (more than %u characters)", file_name, +- line_number, ASN1_MAX_NAME_SIZE); ++ line_number, (unsigned)ASN1_MAX_NAME_SIZE); + break; + case ASN1_IDENTIFIER_NOT_FOUND: + snprintf (error_desc, ASN1_MAX_ERROR_DESCRIPTION_SIZE, +-- +1.9.1 +
meta/recipes-support/gnutls/libtasn1/0003-parser_aux-corrected-potential-null-pointer-derefere.patch new file +73 -0
73 lines not on this page · raw message
meta/recipes-support/gnutls/libtasn1/0004-tools-eliminated-compiler-warnings.patch new file +56 -0
56 lines not on this page · raw message
meta/recipes-support/gnutls/libtasn1_4.9.bb +4 -0
@@ -10,6 +10,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ SRC_URI = "${GNU_MIRROR}/libtasn1/libtasn1-${PV}.tar.gz \ file://dont-depend-on-help2man.patch \ + file://0001-configure-don-t-add-Werror-to-build-flags.patch \ + file://0002-ASN.y-corrected-compiler-warning.patch \ + file://0003-parser_aux-corrected-potential-null-pointer-derefere.patch \ + file://0004-tools-eliminated-compiler-warnings.patch \ " SRC_URI[md5sum] = "3018d0f466a32b66dde41bb122e6cab6"
Signature · 1 line
2.9.2