This commit handles the -fno-common flag of up-to-date Tizen compiler (GCC).
In case of Opensource project, it is to restore the existing -fcommon flag.
* Reference:
* https://wiki.tizen.org/ASan
- “multiple definition of” linking error due to -fno-common
Change-Id: Ic967d999ccb60abaa4b1a6dc9edc954830ad289e
Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
cp %{SOURCE1001} .
%build
+# https://wiki.tizen.org/ASan#.E2.80.9Cmultiple_definition_of.E2.80.9D_linking_error_due_to_-fno-common
+%{?asan:%restore_fcommon}
+
export LANG=C
mkdir build && cd build