Browse Source

R: drop '-fno-schedule-insns2' option for VineSeed (x86_64)

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@12063 ec354946-7b23-47d6-9f5a-488ba84defc7
ara_t 5 years ago
parent
commit
2514143239
1 changed files with 11 additions and 1 deletions
  1. 11 1
      R/R/R-vl.spec

+ 11 - 1
R/R/R-vl.spec

@@ -1,6 +1,6 @@
 %define pkg_name    R
 %define pkg_version 3.6.0
-%define pkg_release 1%{?_dist_release}
+%define pkg_release 2%{?_dist_release}
 
 Summary:     A language for data analysis and graphics
 Summary(ja): データ解析・グラフィック化の言語
@@ -171,6 +171,13 @@ export R_BROWSER="%{_bindir}/xdg-open"
 export LD_LIBRARY_PATH=%{_libdir}/R/lib
 %endif
 
+%if %{?_dist_release} >= "vl7"
+%ifarch x86_64
+export CFLAGS="-O2 -m64 -mtune=generic -fno-strict-aliasing"
+export CXXFLAGS="-O2 -m64 -mtune=generic -fno-strict-aliasing"
+%endif
+%endif
+
 # Add PATHS to Renviron for R_LIBS_SITE
 echo 'R_LIBS_SITE=${R_LIBS_SITE-'"'/usr/local/lib/R/site-library:%{_libdir}/R/site-library:%{_libdir}/R/library'"'}' \
   >> etc/Renviron.in
@@ -295,6 +302,9 @@ fi
 
 
 %changelog
+* Thu May 09 2019 Toshiaki Ara <ara_t@384.jp> 3.6.0-2
+- drop "-fno-schedule-insns2" option for clang/clang++ in VineSeed (x86_64)
+
 * Fri Apr 26 2019 Toshiaki Ara <ara_t@384.jp> 3.6.0-1
 - update to 3.6.0
 - build using clang/clang++ for VineSeed (x86_64)