[Slackbuilds-users] Modifying config.mk's CFLAGS variable

Brandon Pribula b.pribs11 at gmail.com
Sun Apr 24 18:22:00 UTC 2022


On Sun, Apr 24, 2022, 7:40 AM B. Watson, <urchlay at slackware.uk> wrote:

>
>
> On Fri, 22 Apr 2022, Brandon Pribula wrote:
>
> > The solution I came up with is to change '=' to '+='
> >
> > sed -i '/CFLAGS/s/=/+=/' config.mk
> >
> > and remove the optimization flag -Os
> >
> > sed -i '/CFLAGS/s/-Os//' config.mk
> >
> > This works fine but I would like to know if there is a more preferable
> > solution with a slackbuild.
>
> That sounds like it should work fine. I might have sedded the
> flags directly in:
>
> sed -i "/CFLAGS/s,-Os,$SLKCFLAGS," config.mk
>
> ...but there's nothing wrong with the way you did it.
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/


Thanks, B. Watson.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20220424/a47aa288/attachment.htm>


More information about the SlackBuilds-users mailing list