diff options
author | hs321.lee <hs321.lee@samsung.com> | 2013-09-03 22:52:39 +0900 |
---|---|---|
committer | Jaehwa Shin <jaehwa.shin@samsung.com> | 2013-11-20 23:20:15 -0800 |
commit | 9d020a8cb3e93dd4f477854547755c3c4523a7b5 (patch) | |
tree | 2e2b2c72767b7417eedfeb0b55be93630002d54b | |
parent | bd94df0b94dfb45b174a7dc2ca949ad26b647a36 (diff) | |
download | social-9d020a8cb3e93dd4f477854547755c3c4523a7b5.tar.gz social-9d020a8cb3e93dd4f477854547755c3c4523a7b5.tar.bz2 social-9d020a8cb3e93dd4f477854547755c3c4523a7b5.zip |
Modify the spec file to enable secure log only if tizen_build_binary_release_type_eng is set
Change-Id: Iee3295caeda81db6512d1c4e73ea754c3dc39333
Signed-off-by: hs321.lee <hs321.lee@samsung.com>
-rwxr-xr-x | packaging/osp-social.spec | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/packaging/osp-social.spec b/packaging/osp-social.spec index 1e3c07e..3e39790 100755 --- a/packaging/osp-social.spec +++ b/packaging/osp-social.spec @@ -49,16 +49,24 @@ osp social library (Internal-DEV) %build MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` + %ifarch %{ix86} -%if 0%{?simulator} -CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} + ARCH=x86 + CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_" + %if 0%{?simulator} + CXXFLAGS="$CXXFLAGS -D_OSP_EMUL_" + %endif %else -CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_X86_ " cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} + 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 -%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_SECURE_LOG -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=arm + +%if 0%{?tizen_build_binary_release_type_eng} + CXXFLAGS="$CXXFLAGS -D_SECURE_LOG" %endif +cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=${ARCH} + # Call make instruction with smp support make %{?jobs:-j%jobs} |