Browse Source

[fedora] specify srcdir only if building at 30+

pull/1288/head
R4SAS 6 years ago committed by GitHub
parent
commit
e177363377
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      contrib/rpm/i2pd-git.spec

7
contrib/rpm/i2pd-git.spec

@ -41,15 +41,18 @@ cd build
-DWITH_LIBRARY=OFF \ -DWITH_LIBRARY=OFF \
-DWITH_UPNP=ON \ -DWITH_UPNP=ON \
-DWITH_HARDENING=ON \ -DWITH_HARDENING=ON \
-DBUILD_SHARED_LIBS:BOOL=OFF \ -DBUILD_SHARED_LIBS:BOOL=OFF
.
%else %else
%cmake \ %cmake \
-DWITH_LIBRARY=OFF \ -DWITH_LIBRARY=OFF \
-DWITH_UPNP=ON \ -DWITH_UPNP=ON \
-DWITH_HARDENING=ON \ -DWITH_HARDENING=ON \
%if 0%{?fedora} > 29
-DBUILD_SHARED_LIBS:BOOL=OFF \ -DBUILD_SHARED_LIBS:BOOL=OFF \
. .
%else
-DBUILD_SHARED_LIBS:BOOL=OFF
%endif
%endif %endif
make %{?_smp_mflags} make %{?_smp_mflags}

Loading…
Cancel
Save