Re: libgtk-dev bug?
Paolo Molaro <lupus@lettere.unipd.it> writes:
> In the makefile use:
>
> LIBS = $(shell gtk-config --libs)
> FLAGS = $(shell gtk-config --cflags)
>
> and later use $(LIBS) and $(FLAGS).
I think this has to be
LIBS := $(shell gtk-config --libs)
FLAGS := $(shell gtk-config --cflags)
If you don't use := make will re-expand the variables everywhere
they're used. This means (for $(shell ...) options) re-running the
commands.
(I've always been confused about make's behavior. It's a real mess.
It's way too hard to express a number of really simple things, but I
suppose my make gripes aren't really relevant to this discussion...)
--
Rob Browning <rlb@cs.utexas.edu> PGP=E80E0D04F521A094 532B97F5D64E3930
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: