<blockquote>
<p>I'm really reluctant to add one-trick-pony utility macros like this because over time they tend to become liabilities one way or the other, and have other issues.</p>
</blockquote>
<p>Good.</p>
<blockquote>
<p>Manipulating compiler flags is a very common need indeed and could use some help from rpm, but that need is not limited to %optflags, there are various other similar things as well and I certainly don't want separate macros for updating %build_cflags, %build_cxxflags, %build_ldflags and so on.</p>
</blockquote>
<p>To be honest, I'm not much familiar with <code>m4</code> language and how <code>rpm</code> works. Can you please help me how should such macro look like? Should it take the variable name as a first argument?</p>
<blockquote>
<p>I'd be more inclined to consider a generic utility or macro primitive that helps in these kind of tasks. Also, it's worth considering whether the flags be stored in a more manipulation friendly manner in the first place.</p>
</blockquote>
<p>I'm open for a better-defined API. Can you help me with that as well?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/pull/815?email_source=notifications&email_token=ADLPZUYYDZJDWACZC5LRU4DQEPTLLA5CNFSM4ILSKX42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4IPWXI#issuecomment-521206621">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZU7OLQPFDUCDRE6LQFTQEPTLLANCNFSM4ILSKX4Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZU57SOTGJJ3XHFA4PKDQEPTLLA5CNFSM4ILSKX42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4IPWXI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/pull/815?email_source=notifications\u0026email_token=ADLPZUYYDZJDWACZC5LRU4DQEPTLLA5CNFSM4ILSKX42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4IPWXI#issuecomment-521206621",
"url": "https://github.com/rpm-software-management/rpm/pull/815?email_source=notifications\u0026email_token=ADLPZUYYDZJDWACZC5LRU4DQEPTLLA5CNFSM4ILSKX42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4IPWXI#issuecomment-521206621",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>