<div dir="auto">Hi,<br>
<br>
I have a situation with an application I'm packaging. The CFLAGS variable, et al in <a href="http://config.mk">config.mk</a> can't be prepended.<br>
<br>
CFLAGS = -std=c99 ...<br>
<br>
instead of<br>
<br>
CFLAGS += -std=c99 ...<br>
<br>
so as is I can't prepend $SLKFLAGS to $CFLAGS. It also contains an optimization flag: -Os which conflicts with Slackware's.<br>
<br>
The solution I came up with is to change '=' to '+='<br>
<br>
sed -i '/CFLAGS/s/=/+=/' <a href="http://config.mk">config.mk</a><br>
<br>
and remove the optimization flag -Os<br>
<br>
sed -i '/CFLAGS/s/-Os//' <a href="http://config.mk">config.mk</a><br>
<br>
This works fine but I would like to know if there is a more preferable solution with a slackbuild.<div dir="auto"><br></div><div dir="auto">Thanks</div></div>