Michal Domonkos 7bfe20
diff -up rpm-4.18.1/macros.in.orig rpm-4.18.1/macros.in
Michal Domonkos 7bfe20
--- rpm-4.18.1/macros.in.orig	2023-03-15 13:57:06.385361527 +0100
Michal Domonkos 7bfe20
+++ rpm-4.18.1/macros.in	2023-03-15 13:58:09.613971713 +0100
Michal Domonkos 7bfe20
@@ -727,10 +727,11 @@ package or when debugging this package.\
Michal Domonkos 7bfe20
   RPM_SOURCE_DIR=\"%{_sourcedir}\"\
Michal Domonkos 7bfe20
   RPM_BUILD_DIR=\"%{_builddir}\"\
Adam Jackson 4dd6dd
   RPM_OPT_FLAGS=\"%{optflags}\"\
Panu Matilainen 81329c
+  RPM_LD_FLAGS=\"%{?build_ldflags}\"\
Adam Jackson 4dd6dd
   RPM_ARCH=\"%{_arch}\"\
Adam Jackson 4dd6dd
   RPM_OS=\"%{_os}\"\
Panu Matilainen 0a7d17
   RPM_BUILD_NCPUS=\"%{_smp_build_ncpus}\"\
Panu Matilainen 0a7d17
-  export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_BUILD_NCPUS\
Michal Domonkos 7bfe20
+  export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_BUILD_NCPUS RPM_LD_FLAGS\
Adam Jackson 4dd6dd
   RPM_DOC_DIR=\"%{_docdir}\"\
Adam Jackson 4dd6dd
   export RPM_DOC_DIR\
Panu Matilainen 5b4d98
   RPM_PACKAGE_NAME=\"%{NAME}\"\