From edabf2228f33a1715e366589a399a43b82a8f223 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Fri, 22 Jun 2018 22:36:05 +0200 Subject: [PATCH] Fix PORTABLE usage We don't use CMake, but Makefiles. Signed-off-by: David Abdurachmanov --- rocksdb.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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