diff --git a/ibutils.spec b/ibutils.spec index 9570008..bc7ec92 100644 --- a/ibutils.spec +++ b/ibutils.spec @@ -78,6 +78,7 @@ Static libraries from the Mellanox Infiniband diagnostic utilities %patch2 %patch3 -p1 -b .gcc10 +%build autoreconf -fiv -I config sed -i "s/^libibmscli_la_LIBADD =/& -lpthread/" ibmgtsim/src/Makefile.in sed -e 's#all-am: Makefile $(PROGRAMS) $(LIBRARIES) $(LTLIBRARIES)#all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(PROGRAMS)#' -i ibis/src/Makefile.in @@ -87,7 +88,6 @@ sed -e 's|^LTCC="gcc"|LTCC="gcc -Wl,--as-needed"|' \ -e 's|^CC="g++"|CC="g++ -Wl,--as-needed"|' \ -i ibdm/libtool ibis/libtool ibmgtsim/libtool -%build # The build isn't smp safe, so no %{?_smp_mflags} export CXXFLAGS="$CXXFLAGS -fno-strict-aliasing -fPIC" make