Apply "nodebug" option to disable debug build
authorJongseok Yang <js45.yang@samsung.com>
Sat, 1 Jun 2013 05:49:07 +0000 (14:49 +0900)
committerGerrit Code Review <gerrit2@kim11>
Mon, 3 Jun 2013 05:27:10 +0000 (14:27 +0900)
After this patch, debug build can be disabled using --define="nodebug 1"
ex) gbs build -A i586 --incremental --include-all --define="nodebug 1"

[Title] Apply "nodebug" option to disable debug build
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] N/A

Change-Id: I057f7cb230cd24c5763467a11e15193ce19b792f

packaging/webkit2-efl.spec

index e020b44..6c107c1 100644 (file)
@@ -85,6 +85,11 @@ export CFLAGS="$(echo $CFLAGS | sed 's/-Wl,--as-needed//g')"
 export CXXFLAGS="$(echo $CXXFLAGS | sed 's/-Wl,--as-needed//g')"
 %endif
 
+%if 0%{?nodebug}
+CFLAGS=$(echo $CFLAGS | sed 's/ -g / /')
+CXXFLAGS=$(echo $CXXFLAGS | sed 's/ -g / /')
+%endif
+
 %ifarch %{arm}
 %define EFL_TARGET arm
 %else