diff --git a/rocksdb.spec b/rocksdb.spec index 1ee4a29..1dec28e 100644 --- a/rocksdb.spec +++ b/rocksdb.spec @@ -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