/usr/sbin/sgpio in sgpio-1.2.0.10-20.fc28.x86_64 has not been linked with the standard Fedora linker (LDFLAGS) from redhat-rpm-config. Looking at the makefile, there is no way to inject the flags: sgpio.o: sgpio.c gcc $(CFLAGS) -c sgpio.c So you either need to build directly from the %build section in the RPM spec file, or patch the makefile. See https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/master/f/buildflags.md for information on RPM macros and environment variables provided by the build environment.
Should be fixed now. https://src.fedoraproject.org/rpms/sgpio/c/d81baccc87f76e172684837da21c6911f777f94b?branch=master https://kojipkgs.fedoraproject.org//work/tasks/7617/25317617/build.log ... gcc -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld sgpio.o -o sgpio ...
I took the liberty to push this to the f28 branch, too. Fix confirmed for sgpio-1.2.0.10-21.fc28. Thanks.