* [Buildroot] [PATCH 1/1] package/tvheadend: Fix static build
@ 2015-08-25 16:22 Bernd Kuhls
2015-08-25 19:32 ` Jerzy Grzegorek
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2015-08-25 16:22 UTC (permalink / raw)
To: buildroot
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
+
define TVHEADEND_BUILD_CMDS
$(MAKE) -C $(@D)
endef
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] package/tvheadend: Fix static build
2015-08-25 16:22 [Buildroot] [PATCH 1/1] package/tvheadend: Fix static build Bernd Kuhls
@ 2015-08-25 19:32 ` Jerzy Grzegorek
0 siblings, 0 replies; 2+ messages in thread
From: Jerzy Grzegorek @ 2015-08-25 19:32 UTC (permalink / raw)
To: buildroot
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-08-25 19:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-25 16:22 [Buildroot] [PATCH 1/1] package/tvheadend: Fix static build Bernd Kuhls
2015-08-25 19:32 ` Jerzy Grzegorek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox