From d2eaf463d95198b88392bcf76407fc7c1dce63d7 Mon Sep 17 00:00:00 2001 From: "jh0522.choi" Date: Wed, 21 Aug 2013 10:56:41 +0900 Subject: [PATCH] Add to check condition for emulator in spec file --- packaging/apps.CertificateSelector.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packaging/apps.CertificateSelector.spec b/packaging/apps.CertificateSelector.spec index bd58121..df53e95 100644 --- a/packaging/apps.CertificateSelector.spec +++ b/packaging/apps.CertificateSelector.spec @@ -27,8 +27,12 @@ The app-control of the certificate manager %build MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` %ifarch %{ix86} +%if 0%{?simulator} CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} %else +CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ " cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} +%endif +%else 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_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} %endif -- 2.7.4