Add 'TIZEN_ENGINEER_MODE' for printing dlog on spec file
authorYunchan Cho <yunchan.cho@samsung.com>
Fri, 9 Aug 2013 04:57:51 +0000 (13:57 +0900)
committerYunchan Cho <yunchan.cho@samsung.com>
Fri, 9 Aug 2013 07:24:14 +0000 (16:24 +0900)
[Issue] N/A
[Problem] dlog message is not printed
[Cause] Necessary cflag definition was not added
[Solution] 'TIZEN_ENGINEER_MODE' gcc definition is added to turning on dlog

Change-Id: Ib58321cee497677822941162f1383e0909953bfa

packaging/livebox.web-provider.spec

index f7a2439..aab7478 100755 (executable)
@@ -42,9 +42,15 @@ Web Provider library (dev)
 %setup -q
 
 %build
+%if 0%{?tizen_build_binary_release_type_eng}
+export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
+export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
+export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
+%endif
+
 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_PROJECT_VERSION=%{version}
 #-fpie  LDFLAGS="${LDFLAGS} -pie -O3"
-CFLAGS="${CFLAGS} -Wall -Winline -Werror -fno-builtin-malloc" make %{?jobs:-j%jobs}
+CXXFLAGS="${CXXFLAGS} -Wall -Winline -Werror -fno-builtin-malloc" make %{?jobs:-j%jobs}
 
 %install
 rm -rf %{buildroot}