Fix PORTABLE usage

We don't use CMake, but Makefiles.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
This commit is contained in:
David Abdurachmanov 2018-06-22 22:36:05 +02:00
parent f3144d31d1
commit edabf2228f
Signed by: davidlt
GPG Key ID: 7108702C938B13C1

View File

@ -40,14 +40,13 @@ rm build_tools/gnu_parallel
%build
export CFLAGS="%{optflags}"
export EXTRA_CXXFLAGS=" -std=c++11 %{optflags}"
make %{?_smp_mflags} shared_lib
PORTABLE=1 make %{?_smp_mflags} shared_lib PORTABLE=ON
%install
make install-shared \
PORTABLE=1 make install-shared \
INSTALL_PREFIX=%{buildroot}\
LIB_INSTALL_DIR=%{_libdir}\
INCLUDE_INSTALL_DIR=%{_includedir}\
PORTABLE=ON
INCLUDE_INSTALL_DIR=%{_includedir}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig