Adam Jackson 4dd6dd
diff -up rpm-4.9.1.1/macros.in.jx rpm-4.9.1.1/macros.in
Adam Jackson 4dd6dd
--- rpm-4.9.1.1/macros.in.jx	2011-08-03 16:19:05.000000000 -0400
Adam Jackson 4dd6dd
+++ rpm-4.9.1.1/macros.in	2011-08-08 09:41:52.981064316 -0400
Adam Jackson 4dd6dd
@@ -674,9 +674,10 @@ print (t)\
Adam Jackson 4dd6dd
   RPM_BUILD_DIR=\"%{u2p:%{_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\
Panu Matilainen 0a7d17
+  export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_LD_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}\"\