Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
40e697a28e | ||
|
|
f951e43fe4 | ||
|
|
dd16c1ac58 | ||
|
|
f8307edda8 |
1 changed files with 11 additions and 7 deletions
18
vipr.spec
18
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,19 +38,23 @@ certificates.
|
|||
%prep
|
||||
%autosetup -n %{name}-%{commit} -p1
|
||||
|
||||
%build
|
||||
%conf -p
|
||||
cd code
|
||||
%cmake
|
||||
%cmake_build
|
||||
|
||||
# For some reason, viprincomp is linked with libsoplex, even though
|
||||
# -Wl,-as-needed is in the link flags. Relink to drop that dependency.
|
||||
%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.
|
||||
cd %{_vpath_builddir}
|
||||
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
|
||||
#%%cmake_install does nothing, so install by hand
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue