[Rpm-maint] [rpm-software-management/rpm] Use $ldflags in ./configure macro in order to set LDFLAGS. (#660)

Panu Matilainen notifications at github.com
Wed Apr 24 10:22:04 UTC 2019


No objection to adding LDFLAGS to %configure, it's actually long overdue. Fedora has had its own version of this for a quite some time now, but nobody got around to upstreaming it. This seems like as good time as any to take a look at that and consider which parts would be upstreamable.

There are a whole bunch of related things done, mostly done in redhat-rpm-config. For details, see https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/master/f/macros#_27 but in summary:
- %optflags is only a building block for language specific %build_fooflags macros (except for ldflags which is not related)
- the %build_fooflags macros are used for setting the environment
- the environment setting is separated from %configure so it's usable for other make systems too
- there are further %extension_fooflags macros which are meant for building things like perl and python C-extensions

In addition, %build_ldflags is passed as RPM_LD_FLAGS to all the build scripts via %___build_pre, but that's an older addition than the redhat-rpm-config stuff above so not sure how relevant/useful it is in reality. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/660#issuecomment-486164767
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190424/d505d809/attachment.html>


More information about the Rpm-maint mailing list