From 421aaffa2799d4521ded2a1857bc109fc0aa93ac Mon Sep 17 00:00:00 2001 From: "Dongkyun, Son" Date: Tue, 13 Sep 2016 17:29:07 +0900 Subject: [PATCH] packaging: Add -fcommon to build with ASan Signed-off-by: Dongkyun, Son --- packaging/syslinux.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packaging/syslinux.spec b/packaging/syslinux.spec index 0042c1e..6d46e10 100644 --- a/packaging/syslinux.spec +++ b/packaging/syslinux.spec @@ -70,6 +70,9 @@ booting in the /var/lib/tftpboot directory. %build +%if "%{asan}" == "1" +%restore_fcommon +%endif %ifarch %{ix86} ORIG_CFLAGS="${CFLAGS}" CFLAGS='-O2 -g -m32 -march=i686 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables' -- 2.7.4