Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Jerry James
27587312b5 Fix RISC-V link failure 2026-02-12 11:12:07 -07:00

View file

@ -43,14 +43,16 @@ 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.
%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 ../..
%endif
%install
#%%cmake_install does nothing, so install by hand