diff --git a/OpenIPMI.spec b/OpenIPMI.spec index 8e4b9c0..206b982 100644 --- a/OpenIPMI.spec +++ b/OpenIPMI.spec @@ -76,6 +76,7 @@ done popd %build +export CFLAGS=-fPIC %configure --with-pythoninstall=%{python_sitearch} sed -i 's|^sys_lib_dlsearch_path_spec="/lib /usr/lib|sys_lib_dlsearch_path_spec="/%{_lib} %{_libdir}|' libtool sed -i 's| -rpath \$(libdir)\( \$(libOpenIPMIposix_la_LDFLAGS)\)|\1|' unix/Makefile