lightmediascanner: add -D_FILE_OFFSET_BITS=64 to CFLAGS 03/9403/3
authorMatt Ranostay <matt.ranostay@konsulko.com>
Wed, 17 May 2017 05:28:53 +0000 (05:28 +0000)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Fri, 19 May 2017 10:38:39 +0000 (10:38 +0000)
Some media may have 4GB files which will cause failure on a 32-bit
system scan.

This solves this on 32-bit systems with -D_FILE_OFFSET_BITS=64 compile
flag.

Bug-AGL: SPEC-604
Change-Id: Id941ee9f08b35e70ddab651268e5b443a26a9ec2
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9403
Reviewed-by: José Bollo <jobol@nonadev.net>
Reviewed-by: Stéphane Desneux <stephane.desneux@iot.bzh>
Reviewed-by: Matt Porter <mporter@konsulko.com>
Reviewed-by: Changhyeok Bae <changhyeok.bae@lge.com>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
meta-agl/recipes-multimedia/lightmediascanner/lightmediascanner_%.bbappend

index b1c3b6e..52be415 100644 (file)
@@ -10,6 +10,8 @@ SRC_URI += "file://lightmediascanner.service \
             file://lightmediascanner.sh \
            "
 
+CFLAGS_append = " -D_FILE_OFFSET_BITS=64"
+
 inherit systemd
 
 do_install_append() {