diff --git a/SPECS/efivar.spec b/SPECS/efivar.spec
index 05fa803..1798c80 100644
--- a/SPECS/efivar.spec
+++ b/SPECS/efivar.spec
@@ -1,6 +1,6 @@
 Name:           efivar
 Version:        38
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Tools to manage UEFI variables
 License:        LGPLv2
 URL:            https://github.com/rhboot/efivar
@@ -59,12 +59,12 @@ done
 make LIBDIR=%{_libdir} BINDIR=%{_bindir} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
 
 %install
-%makeinstall
+%makeinstall CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
 install -m 0644 src/abignore %{buildroot}%{_includedir}/efivar/.abignore
 
 %check
 %ifarch x86_64
-make abicheck
+make abicheck CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
 %endif
 
 %ldconfig_scriptlets libs
@@ -88,6 +88,10 @@ make abicheck
 %{_libdir}/*.so.*
 
 %changelog
+* Wed Jan 11 2023 Robbie Harwood <rharwood@redhat.com> - 38-3
+- Fix inheritance of buildflags
+- Resolves: #2144520
+
 * Wed Feb 02 2022 Robbie Harwood <rharwood@redhat.com> - 38-2
 - Bump to re-run tests; no code changes
 - Resolves: #2024374