On 10/18/10 2:34 AM, Michael Büsch wrote:
On Sun, 2010-10-17 at 18:11 -0700, Philip Prindeville wrote:
so $(CFLAGS) is the TARGET_CFLAGS passed in for cross-compilation
(including -I$(STAGING_DIR)/mumble), and $(CFLAGS_) is the flags
that the PPP project requires, including -I../../../include ...
so unfortunately the wrong order.
What about
TARGET_CFLAGS:= -I. -I../.. -I../../../include $(TARGET_CFLAGS)
Doesn't that work?
This way it would specify the relative paths twice on the commandline,
but to me it seems the best workaround w.r.t. maintainability, because
it does not require patching the sources.
Wouldn't work because there are various sub-directories in the project (2- and 3-nested
deep) in the project, so you don't always know how many levels of ".." you need.
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel