Tizen/Dist: Handle ASAN flag (-fno-common) of latest Tizen compiler 14/242814/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified tizen_6.0 tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/6.0/unified/20201030.112302 accepted/tizen/6.0/unified/hotfix/20201102.231712 accepted/tizen/6.5/unified/20211028.224008 accepted/tizen/7.0/unified/20221110.061917 accepted/tizen/7.0/unified/hotfix/20221116.111153 accepted/tizen/8.0/unified/20231005.095243 accepted/tizen/unified/20200914.131304 accepted/tizen/unified/dev/20240620.010943 submit/tizen/20200901.074720 submit/tizen/20200914.044645 submit/tizen_6.0/20201029.205503 submit/tizen_6.0_hotfix/20201102.192903 submit/tizen_6.0_hotfix/20201103.115103 submit/tizen_6.5/20211028.163601 tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
authorGeunsik Lim <geunsik.lim@samsung.com>
Tue, 1 Sep 2020 05:25:46 +0000 (14:25 +0900)
committerGeunsik Lim <geunsik.lim@samsung.com>
Tue, 1 Sep 2020 05:25:46 +0000 (14:25 +0900)
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>
packaging/ne10.spec

index 75e8d49..68023c2 100644 (file)
@@ -46,6 +46,9 @@ This package contains the development files.
 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