diff --git a/libbpf.spec b/libbpf.spec index adce2d7..27ae421 100644 --- a/libbpf.spec +++ b/libbpf.spec @@ -39,7 +39,7 @@ Requires: %{name}-devel = 2:%{version}-%{release} The %{name}-static package contains static library for developing applications that use %{name} -%global make_flags DESTDIR=%{buildroot} OBJDIR=%{_builddir} CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags} -Wl,--no-as-needed" LIBDIR=/%{_libdir} NO_PKG_CONFIG=1 +%global make_flags DESTDIR=%{buildroot} OBJDIR=%{_builddir} CFLAGS="%{build_cflags} -fPIC" LDFLAGS="%{build_ldflags} -Wl,--no-as-needed" LIBDIR=/%{_libdir} NO_PKG_CONFIG=1 %prep %autosetup -n %{githubfull}