Optflags: riscv64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -mabi=lp64d -march=rv64gc
#### Enable ASan for the project
-#%define asan 1
-#Macros:
-#%asan 1
-#:Macros
+%define asan 1
+Macros:
+%asan 1
+:Macros
### To Disable ASAN - Workaround ####
### Disabled about packages of base-tool ###
## %asan_incompatible_pkgs abseil-cpp acl alsa-lib alsa-utils attr autoconf autoconf-archive autoconf213 automake bash bc binutils binutils-aarch64 binutils-armv7l binutils-riscv64 bison boost boost-jam build build-compare bzip2 c-ares ccache chrpath cmake configure-dumper coreutils cpio curl dash db4 default-ac-domains diffutils docbook-xsl-stylesheets docbook_4 dos2unix doxygen e2fsprogs ed elfutils expat expect fdupes file filesystem findutils flex fribidi gawk gcc gcc-aarch64 gcc-armv7l gcc-contrib gcc-riscv64 gdbm gettext giflib glibc gmp gn golang grep groff gtk-doc gzip help2man hostname icecream icu iniparser intltool iproute2 iptables iso_ent itstool jsoncpp keyutils kmod krb5 less libarchive libcap libdrm libelf0 libev libevent libffi libgcrypt libgpg-error libjpeg-turbo libmd libnl2 libnl3 libogg libpciaccess libpsl libsigc++ libsndfile libtirpc libtool libunistring libunwind libvorbis libwebp libxcrypt libxml2 libxslt libzio linux-glibc-devel llvm lttng-ust lua m4 make meson mm-common mtdev ncurses net-tools nghttp2 ninja nspr nss openfst openssl openssl1.1 openssl3 opus pam patch patchelf pbzip2 pcre perl perl-DBD-SQLite perl-DBI perl-Devel-Symdump perl-HTML-Parser perl-HTML-Tagset perl-Module-Build perl-PerlIO-gzip perl-Pod-Coverage perl-Software-License perl-Test-Pod perl-Test-Pod-Coverage perl-TimeDate perl-URI perl-XML-Parser perl-gettext perl-inc-latest perl-json perl-libwww-perl pkg-config popt procps-ng python python-MarkupSafe python-appdirs python-argparse python-funcsigs python-libxml2 python-linecache2 python-lxml python-magic python-mako python-markdown python-mock python-nose python-packaging python-pbr python-ply python-pygments python-pyparsing python-setuptools python-six python-traceback2 python-unittest2 python3 python3-MarkupSafe python3-appdirs python3-base python3-build python3-calver python3-editables python3-flit_core python3-hatchling python3-libxml2 python3-lxml python3-magic python3-mako python3-markdown python3-nose python3-packaging python3-pathspec python3-pbr python3-pip python3-pluggy python3-ply python3-pygments python3-pyparsing python3-pyproject_hooks python3-setuptools python3-setuptools_scm python3-six python3-trove_classifiers python3-typing_extensions python3-wheel qemu-accel-aarch64 qemu-accel-armv7l qemu-accel-riscv64 qemu-linux-user readline rpm sed setup sgml-skel shadow-utils smack sqlite taglib tar tcl texinfo tiff tinyxml2 tzdata unzip update-alternatives userspace-rcu uthash util-linux util-macros v4l-utils vim which xdgmime xmlcharent xmlsec1 xmlstarlet xz yasm zip zlib zstd
##:Macros
-#Preinstall: asan-build-env libasan libstdc++
-#Preinstall: asan-force-options findutils
-#RunScripts: libasan
-#RunScripts: asan-build-env
-#RunScripts: asan-force-options
+Preinstall: asan-build-env libasan libstdc++
+Preinstall: asan-force-options findutils
+RunScripts: libasan
+RunScripts: asan-build-env
+RunScripts: asan-force-options
Macros:
%__spec_check_pre exit 0