[systemd-devel] [PATCH v2 2/2] build: allow setting OBJCOPY

David Herrmann dh.herrmann at gmail.com
Sat Apr 11 03:49:33 PDT 2015


Hi

On Wed, Apr 8, 2015 at 10:33 PM, Marc-Antoine Perennou
<Marc-Antoine at perennou.com> wrote:
> ---
>  Makefile.am  | 4 ++--
>  configure.ac | 1 +
>  2 files changed, 3 insertions(+), 2 deletions(-)

Applied!

Thanks
David

> diff --git a/Makefile.am b/Makefile.am
> index 9b769ee..397a71c 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -2596,7 +2596,7 @@ $(systemd_boot_solib): $(systemd_boot_objects)
>         nm -D -u $@ | grep ' U ' && exit 1 || :
>
>  $(systemd_boot): $(systemd_boot_solib)
> -       $(AM_V_GEN) objcopy -j .text -j .sdata -j .data -j .dynamic \
> +       $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
>           -j .dynsym -j .rel -j .rela -j .reloc \
>           --target=efi-app-$(EFI_ARCH) $< $@
>
> @@ -2634,7 +2634,7 @@ $(stub_solib): $(stub_objects)
>         nm -D -u $@ | grep ' U ' && exit 1 || :
>
>  $(stub): $(stub_solib)
> -       $(AM_V_GEN) objcopy -j .text -j .sdata -j .data -j .dynamic \
> +       $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
>           -j .dynsym -j .rel -j .rela -j .reloc \
>           --target=efi-app-$(EFI_ARCH) $< $@
>
> diff --git a/configure.ac b/configure.ac
> index 7e4a574..6d7c2af 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -119,6 +119,7 @@ GOBJECT_INTROSPECTION_CHECK([1.31.1])
>     AM_CONDITIONAL([HAVE_INTROSPECTION], [false])
>     enable_introspection=no])
>
> +AC_CHECK_TOOL(OBJCOPY, objcopy)
>  AC_CHECK_TOOL(STRINGS, strings)
>  AC_CHECK_TOOL(GPERF, gperf)
>  if test -z "$GPERF" ; then
> --
> 2.3.3
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


More information about the systemd-devel mailing list