Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
27587312b5 |
1 changed files with 5 additions and 7 deletions
12
vipr.spec
12
vipr.spec
|
|
@ -20,9 +20,9 @@ Patch: %{name}-zlib-ng.patch
|
|||
|
||||
# See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
|
||||
ExcludeArch: %{ix86}
|
||||
BuildSystem: cmake
|
||||
|
||||
BuildRequires: boost-devel
|
||||
BuildRequires: cmake
|
||||
BuildRequires: cmake(soplex)
|
||||
BuildRequires: cmake(tbb)
|
||||
BuildRequires: gcc-c++
|
||||
|
|
@ -38,13 +38,11 @@ certificates.
|
|||
%prep
|
||||
%autosetup -n %{name}-%{commit} -p1
|
||||
|
||||
%conf -p
|
||||
%build
|
||||
cd code
|
||||
%cmake
|
||||
%cmake_build
|
||||
|
||||
%build -p
|
||||
cd code
|
||||
|
||||
%build -a
|
||||
%if "%{?_lto_cflags}" != ""
|
||||
# LTO inlines a few functions, leaving viprincomp with unneeded dependencies.
|
||||
# Relink to drop the unneeded dependencies.
|
||||
|
|
@ -53,7 +51,7 @@ g++ %{build_cxxflags} %{build_ldflags} \
|
|||
-Wl,--dependency-file=CMakeFiles/viprincomp.dir/link.d \
|
||||
CMakeFiles/viprincomp.dir/incompletify.cpp.o \
|
||||
-o viprincomp -lmpfr -lgmp
|
||||
cd -
|
||||
cd ../..
|
||||
%endif
|
||||
|
||||
%install
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue