michal-grzedzicki / rpms / rpm

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