examples/Makefile: give priority to pkg-config flags
authorStefano Sabatini <stefasab@gmail.com>
Fri, 24 Aug 2012 14:49:04 +0000 (16:49 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Thu, 30 Aug 2012 19:46:44 +0000 (21:46 +0200)
commite53becc70fad1a30f385457ce8d1975d2f5f1781
tree10e00a7f97648fa322ba04b7bce42211bfb4aeec
parent6fc892d271912e8ca0b0512e224575b192f5addf
examples/Makefile: give priority to pkg-config flags

In case CFLAGS/LDLIBS are already defined and conflicting with the
pkg-config flags, give priority to the latter since they are used to
detect compilation flags.

This should fix for example the case where there are many different
instances of a library, CFLAGS=-I/foo/include and pkg-config cflags say
-I/bar/include.
doc/examples/Makefile