diff --git a/git.spec b/git.spec index 3f7ef8f..b07ba62 100644 --- a/git.spec +++ b/git.spec @@ -297,6 +297,7 @@ rm -f Documentation/.gitignore perl -pi -e 's!^(GITWEB_CSS|GITWEB_LOGO|GITWEB_FAVICON) = !$1 = /gitweb/!' Makefile %build +%global optflags %{optflags} -fno-strict-aliasing # same flags and prefix must be passed for make test too %define git_make_params prefix=%{_prefix} CC=%{__cc} gitexecdir=%{_libdir}/git-core CFLAGS="%{optflags}" GITWEB_CONFIG=%{_sysconfdir}/gitweb.conf DOCBOOK_XSL_172=0 INSTALLDIRS=vendor perllibdir=%{perl_vendorlib} %make %{git_make_params} all doc gitweb