From 5a889ec7eafe5b8af5917a1d10b49dd5d53b8281 Mon Sep 17 00:00:00 2001 From: Dongkyun Son Date: Wed, 15 Jan 2020 12:48:58 +0900 Subject: [PATCH] packaging: armv7l: add '-Wp,-D_FILE_OFFSET_BITS=64' flag Fixed arm 32-bit build on 64-bit host. scandir: Value too large for defined data type Change-Id: I65ffa1c777dc6cf5bfe0aeb90c892ff6e700f5ba Signed-off-by: Dongkyun Son --- packaging/webapi-plugins-teec.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packaging/webapi-plugins-teec.spec b/packaging/webapi-plugins-teec.spec index 5f53d38..717ad0a 100644 --- a/packaging/webapi-plugins-teec.spec +++ b/packaging/webapi-plugins-teec.spec @@ -36,6 +36,10 @@ Tizen TEF Framework Client API plugin %build +%ifarch armv7l +export CFLAGS="$CFLAGS -Wp,-D_FILE_OFFSET_BITS=64" +export CXXFLAGS="$CXXFLAGS -Wp,-D_FILE_OFFSET_BITS=64" +%endif export GYP_GENERATORS='ninja' GYP_OPTIONS="--depth=. -Dtizen=1 -Dextension_build_type=Debug -Dextension_host_os=%{profile} -Dprivilege_engine=%{tizen_privilege_engine}" GYP_OPTIONS="$GYP_OPTIONS -Ddisplay_type=%{display_type}" -- 2.34.1