Fix asan build
authorKonstantin Baladurin <k.baladurin@partner.samsung.com>
Tue, 6 Mar 2018 13:49:52 +0000 (16:49 +0300)
committerwchang kim <wchang.kim@samsung.com>
Fri, 14 Jul 2023 03:05:19 +0000 (12:05 +0900)
We shoundn't use -fno-common option because lttng uses tentative
definitions. In the case of asan build it is used implicitly, so
we need to disable this option.

Change-Id: Ie613d2194ec7efd097c4c87022a6e186a528f9df
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
packaging/lttng-ust.spec

index 9689c57..ca02d76 100644 (file)
@@ -35,6 +35,8 @@ LTTng user-space tracing
 %global optflags %(echo %{optflags} | sed 's/-O2/-O1/')
 %endif
 
+%{?asan:%restore_fcommon}
+
 # Reinitialize libtool with the fedora version to remove Rpath
 autoreconf -vif