[Slackbuilds-users] feh

B Watson yalhcru at gmail.com
Mon Mar 25 18:56:46 UTC 2013


On 3/25/13, joe <gmane at csrc.com> wrote:
> +  CFLAGS="-g $SLKCFLAGS -Wall -Wextra -pedantic -DPREFIX=\\\"/usr\\\"
> -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPACKAGE=\\\"$PRGNAME\\\"
> -DVERSION=\\\"$VERSION\\\""

It probably would make more sense (and be less brittle) for things like that
to use a bit of sed:

sed -i "/CFLAGS=/s,-g,$SLKCFLAGS" Makefile

(Untested, I haven't looked at the feh source, just an example)


More information about the SlackBuilds-users mailing list