Skip to content

Commit

Permalink
Add RPM_LD_FLAGS to build environment
Browse files Browse the repository at this point in the history
Added in Fedora in 2011 to allow to %define _hardened_build 1 in one's
specfile and have all the necessary gcc and ld flags configured in the
common cases.

See also rhbz#728974 and FESCO ticket 563 (https://pagure.io/fesco/issue/563)
  • Loading branch information
ffesti authored and pmatilai committed Jun 8, 2023
1 parent 51c596a commit e9f95c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion macros.in
Original file line number Diff line number Diff line change
Expand Up @@ -752,11 +752,12 @@ Supplements: (%{name} = %{version}-%{release} and langpacks-%{1})\
RPM_SOURCE_DIR=\"%{_sourcedir}\"\
RPM_BUILD_DIR=\"%{_builddir}\"\
RPM_OPT_FLAGS=\"%{optflags}\"\
RPM_LD_FLAGS=\"%{?build_ldflags}\"\
RPM_ARCH=\"%{_arch}\"\
RPM_OS=\"%{_os}\"\
RPM_BUILD_NCPUS=\"%{_smp_build_ncpus}\"\
RPM_SPECPARTS_DIR=\"%{specpartsdir}\"\
export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_BUILD_NCPUS RPM_SPECPARTS_DIR\
export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_BUILD_NCPUS RPM_SPECPARTS_DIR RPM_LD_FLAGS\
RPM_DOC_DIR=\"%{_docdir}\"\
export RPM_DOC_DIR\
RPM_PACKAGE_NAME=\"%{NAME}\"\
Expand Down

0 comments on commit e9f95c5

Please sign in to comment.