From 51c84893d3d791869d760c21e5207a5d3741a8dc Mon Sep 17 00:00:00 2001 From: Yury Usishchev Date: Mon, 26 May 2014 18:02:47 +0400 Subject: [PATCH] Add AArch64-specific options to cflags Change-Id: I9a3ebe7ac37da3b44e682c9b7fbd3e76dd39dc85 Signed-off-by: Yury Usishchev --- packaging/osp-loader.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packaging/osp-loader.spec b/packaging/osp-loader.spec index f260453..b181289 100644 --- a/packaging/osp-loader.spec +++ b/packaging/osp-loader.spec @@ -31,9 +31,14 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` CXXFLAGS="$CXXFLAGS -D_OSP_EMUL_" %endif %else +%ifarch aarch64 + ARCH=aarch64 + CXXFLAGS="-O2 -g -pipe -Wall -fno-exceptions -Wformat -Wformat-security -Wl,--as-needed -fmessage-length=0 -march=armv8-a+fp+simd -funwind-tables -D_OSP_DEBUG_ -D_OSP_ARMEL_ -DTIZEN_DEBUG_ENABLE" +%else ARCH=arm CXXFLAGS="-O2 -g -pipe -Wall -fno-exceptions -Wformat -Wformat-security -Wl,--as-needed -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -D__SOFTFP__ -mthumb -Wa,-mimplicit-it=thumb -funwind-tables -D_OSP_DEBUG_ -D_OSP_ARMEL_" %endif +%endif %if 0%{?tizen_build_binary_release_type_eng} CXXFLAGS="$CXXFLAGS -D_SECURE_LOG" -- 2.7.4