[PATCH] tools: always create $STAGING_DIR/usr/{include,lib}
Andre Heider
a.heider at gmail.com
Tue Aug 25 03:49:12 EDT 2020
Hi,
On 25/08/2020 09:04, Jo-Philipp Wich wrote:
> Hi,
>
>> Pretty much all packages stage into staging_dir/target-*/usr - I don't
>> think there are any -I/-L flags we can remove.
>
> we're patching the gcc specs [1], [2] to implicitly add $STAGING_DIR/usr/lib
> to the link- and $STAGING_DIR/usr/include to the CPP flags. There is no need
> to globally pass these as -I and -L flags respectively.
>
> And indeed, I just successfully completed a test build with the following
> patch applied:
I missed the specs file, and indeed, those two lines are redundant and
can be removed.
But still, with just your patch I get the same build error as before.
The directories are passed to the toolchain, but don't yet exist
(depending on the target/package selection I guess). My patch on top of
yours fixes it again.
Regards,
Andre
More information about the openwrt-devel
mailing list