packaging: Add -fcommon to build with ASan sandbox/dkson95/asan
authorDongkyun, Son <dongkyun.s@samsung.com>
Tue, 13 Sep 2016 08:29:07 +0000 (17:29 +0900)
committerDongkyun, Son <dongkyun.s@samsung.com>
Tue, 13 Sep 2016 08:29:07 +0000 (17:29 +0900)
Signed-off-by: Dongkyun, Son <dongkyun.s@samsung.com>
packaging/syslinux.spec

index 0042c1e..6d46e10 100644 (file)
@@ -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'