diff --git a/os-prober.spec b/os-prober.spec index 34aa58a..ad38079 100644 --- a/os-prober.spec +++ b/os-prober.spec @@ -42,7 +42,8 @@ sed -i -e 's|grub-mount|grub2-mount|g' os-probes/common/50mounted-tests \ linux-boot-probes/common/50mounted-tests common.sh %build -%make_build CFLAGS="%{optflags}" +%set_build_flags +%make_build LDFLAGS="$LDFLAGS -fPIC" %install install -m 0755 -d %{buildroot}%{_bindir} @@ -89,6 +90,7 @@ fi %changelog * Tue May 14 2019 Hedayat Vatankhah - 1.77-1 - Update to 1.77, use grub2-mount rather than device mapper for mounts +- Use distro LDFLAGS when building the package * Fri Feb 01 2019 Fedora Release Engineering - 1.74-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild