alexk / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone
219cf7
diff -up rpm-4.9.1.1/macros.in.jx rpm-4.9.1.1/macros.in
219cf7
--- rpm-4.9.1.1/macros.in.jx	2011-08-03 16:19:05.000000000 -0400
219cf7
+++ rpm-4.9.1.1/macros.in	2011-08-08 09:41:52.981064316 -0400
219cf7
@@ -674,9 +674,10 @@ print (t)\
219cf7
   RPM_BUILD_DIR=\"%{u2p:%{_builddir}}\"\
219cf7
   RPM_OPT_FLAGS=\"%{optflags}\"\
219cf7
+  RPM_LD_FLAGS=\"%{?build_ldflags}\"\
219cf7
   RPM_ARCH=\"%{_arch}\"\
219cf7
   RPM_OS=\"%{_os}\"\
219cf7
   RPM_BUILD_NCPUS=\"%{_smp_build_ncpus}\"\
219cf7
-  export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_BUILD_NCPUS\
219cf7
+  export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_LD_FLAGS RPM_ARCH RPM_OS RPM_BUILD_NCPUS RPM_LD_FLAGS\
219cf7
   RPM_DOC_DIR=\"%{_docdir}\"\
219cf7
   export RPM_DOC_DIR\
219cf7
   RPM_PACKAGE_NAME=\"%{NAME}\"\