[Buildroot] [PATCH] bzip2: Rearrange build order

Markos Chandras markos.chandras at gmail.com
Wed Jun 5 15:01:49 UTC 2013


On 5 June 2013 15:48, Peter Korsgaard <jacmet at uclibc.org> wrote:
>>>>>> "Markos" == Markos Chandras <markos.chandras at gmail.com> writes:
>
> Hi,
>
>  Markos> The problem here is that Debian uses a single Makefile to build both
>  Markos> the static and the shared library but in buildroot we use
>  Markos> the Makefile for the static one and Makefile-libbz2_so for the shared
>  Markos> one. In this case, doing what Debian did is not possible
>  Markos> but what we can do is to remove the *.o files within the
>  Markos> Makefile-libbz2_so before we try to build the shared library.
>
> Or we could just do something like:
>
> define BZIP2_BUILD_CMDS
>         $(TARGET_MAKE_ENV)
>                 $(MAKE) -C $(@D) libbz2.a bzip2 bzip2recover \
>                         $(if $(BR2_PREFER_STATIC_LIB),,libbz2.so) \
>                         $(TARGET_CONFIGURE_OPTS)
> endef
>
> E.G. only build the libbz2.so taget (which pulls in *.sho) if building
> shared.
>
> Or alternatively, keep Makefile-libbz2_so, but change it to use .sho
> files instead of .o
>
> --
> Bye, Peter Korsgaard

Hi Peter,

Oh I've seen this e-mail a bit late. I just sent a new patch based on
the second proposal.

--
Regards,
Markos Chandras


More information about the buildroot mailing list