[LEDE-DEV] [Jool-list] It seems to me like the build system ignores EXTRA_FLAGS?
Jo-Philipp Wich
jo at mein.io
Thu Dec 1 08:36:27 PST 2016
Hi Dan,
the following Makefile builds successfully for me on Musl toolchain:
https://gist.github.com/jow-/79255a0361a099e572f8f76e86d5be8d
I think the main issue was that you included package-defaults.mk and
kernel-defaults.mk in the middle of your Makefile which messed up
several build variables.
Another problem might have been the fact that you called autogen.sh
yourself which will cause host autoconf to be picked up which can
usually lead to troubles later on.
The configure script successfully detects argp-standalone:
checking for library containing argp_parse... -largp
The resulting gcc command line looks fine too:
x86_64-openwrt-linux-musl-gcc [...] -lnl-genl-3 -lnl-3 -largp
I had to fix up your build dependency spec to be processed correctly but
all in all your Makefile was already quite close to a working version.
~ Jo
More information about the Lede-dev
mailing list