Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/tvheadend: Fix static build
Date: Tue, 25 Aug 2015 21:32:09 +0200	[thread overview]
Message-ID: <55DCC2B9.20207@trzebnica.net> (raw)
In-Reply-To: <1440519726-30166-1-git-send-email-bernd.kuhls@t-online.de>

Hi Bernd,

> Fixes
> http://autobuild.buildroot.net/results/bd0/bd0e8619df7cd8f21da96ae470691b1ebb2f156c/
> http://autobuild.buildroot.net/results/f1c/f1c40ac9dda5ceeb5665d021333058eb29828d62/
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>   package/tvheadend/tvheadend.mk | 8 ++++++++
>   1 file changed, 8 insertions(+)
>
> diff --git a/package/tvheadend/tvheadend.mk b/package/tvheadend/tvheadend.mk
> index ec04e6f..e145ded 100644
> --- a/package/tvheadend/tvheadend.mk
> +++ b/package/tvheadend/tvheadend.mk
> @@ -71,6 +71,14 @@ define TVHEADEND_CONFIGURE_CMDS
>   	)
>   endef
>   
> +# remove hardcoded -ldl for static builds
> +define TVHEADEND_FIX_MAKEFILE_FOR_STATIC_BUILD
> +	$(SED) 's/-ldl -lpthread -lm/-lpthread -lm/' $(@D)/Makefile
> +endef
> +ifeq ($(BR2_STATIC_LIBS),y)
> +TVHEADEND_POST_CONFIGURE_HOOKS += TVHEADEND_FIX_MAKEFILE_FOR_STATIC_BUILD
> +endif

This should rather be:

ifeq ($(BR2_STATIC_LIBS),y)
define TVHEADEND_FIX_MAKEFILE_FOR_STATIC_BUILD
	$(SED) 's/-ldl -lpthread -lm/-lpthread -lm/' $(@D)/Makefile
endef
TVHEADEND_POST_CONFIGURE_HOOKS += TVHEADEND_FIX_MAKEFILE_FOR_STATIC_BUILD
endif


Regards,
Jerzy

> +
>   define TVHEADEND_BUILD_CMDS
>   	$(MAKE) -C $(@D)
>   endef

      reply	other threads:[~2015-08-25 19:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-25 16:22 [Buildroot] [PATCH 1/1] package/tvheadend: Fix static build Bernd Kuhls
2015-08-25 19:32 ` Jerzy Grzegorek [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55DCC2B9.20207@trzebnica.net \
    --to=jerzy.grzegorek@trzebnica.net \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox