diff --git a/SPECS/llvm.spec b/SPECS/llvm.spec
index cbc0bdd..86ddfc7 100644
--- a/SPECS/llvm.spec
+++ b/SPECS/llvm.spec
@@ -56,7 +56,7 @@
 
 Name:		%{pkg_name}
 Version:	%{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	The Low Level Virtual Machine
 
 License:	NCSA
@@ -211,6 +211,8 @@ cd %{_vpath_builddir}
 %global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
 %endif
 
+# Need to explicitly call set_build_flags if we want to update LDFLAGS
+%set_build_flags
 export LDFLAGS="${LDFLAGS} -Wl,--build-id=md5"
 
 # force off shared libs as cmake macros turns it on.
@@ -513,6 +515,9 @@ fi
 %endif
 
 %changelog
+* Thu Sep 02 2021 sguelton@redhat.com - 12.0.1-2
+- Correctly set ldflags
+
 * Fri Jul 16 2021 sguelton@redhat.com - 12.0.1-1
 - 12.0.1 release