Re: Compiling problems



Mark McLoughlin wrote:
> CFLAGS = $(shell pkg-config --cflags ORBit-2.0)

pkg-config is the spawn of the devil because it makes
it difficult to cross-compile (e.g. for the Sharp Zaurus).
Package-specific config scripts are slightly more cross-compile-friendly.

If you want your project to be cross-compile-friendly, and you're dead set
on using config scripts, you'd use something like this
to allow the user to override the path to pkg-config:

CFLAGS = $(shell $(ORBIT2_PREFIX)orbit2-config --cflags)

- Dan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]