Fix PORTABLE usage
We don't use CMake, but Makefiles. Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
This commit is contained in:
parent
f3144d31d1
commit
edabf2228f
@ -40,14 +40,13 @@ rm build_tools/gnu_parallel
|
|||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
export EXTRA_CXXFLAGS=" -std=c++11 %{optflags}"
|
export EXTRA_CXXFLAGS=" -std=c++11 %{optflags}"
|
||||||
make %{?_smp_mflags} shared_lib
|
PORTABLE=1 make %{?_smp_mflags} shared_lib PORTABLE=ON
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install-shared \
|
PORTABLE=1 make install-shared \
|
||||||
INSTALL_PREFIX=%{buildroot}\
|
INSTALL_PREFIX=%{buildroot}\
|
||||||
LIB_INSTALL_DIR=%{_libdir}\
|
LIB_INSTALL_DIR=%{_libdir}\
|
||||||
INCLUDE_INSTALL_DIR=%{_includedir}\
|
INCLUDE_INSTALL_DIR=%{_includedir}
|
||||||
PORTABLE=ON
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
Loading…
Reference in New Issue
Block a user