[Buildroot] [PATCH 2/2] package/apache: fix build with per-package directory support
Peter Korsgaard
peter at korsgaard.com
Tue Feb 18 22:10:36 UTC 2020
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at bootlin.com> writes:
> When APR_INCLUDEDIR and APU_INCLUDEDIR point to the same directory,
> Apache builds properly. However, with per-package directory support,
> they point to different directories, and APU_INCLUDEDIR contains both
> the APR headers and the APU headers.
> Due to this, the Apache Makefile logic to generate its exports.c file
> leads to duplicate definitions, because the APR headers are considered
> twice: once from APR_INCLUDEDIR, once from APU_INCLUDEDIR.
> We fix this by introducing a patch to the Apache build system.
> In addition, apr provides a special libtool script that gets used by
> apr-util and apache. apr-util already had a fixup for this, but apache
> did not, which was causing the gcc from apr-util per-package
> directories be used during the apache build, causing build failures.
> To fix this, we adjust this libtool script to point to the correct
> tools in apache's per-package directories.
> There are no autobuilder failures for this, because Apache needs
> apr-util, and apr-util currently fails to build when
> BR2_PER_PACKAGE_DIRECTORIES=y.
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Committed, thanks.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list