* [Buildroot] [PATCH 1/1] package/rtmpdump: Fix static build
@ 2014-07-27 7:57 Bernd Kuhls
2014-07-27 8:30 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2014-07-27 7:57 UTC (permalink / raw)
To: buildroot
Fixes
http://autobuild.buildroot.net/results/04c/04cc4f4878466715d980442bd7114fecbeb51c0b/
Quote from README:
A shared library is now built by default, in addition to the static
library. You can also turn it off if desired
$ make SHARED=
The rtmpdump programs still link to the static library, regardless.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
package/rtmpdump/rtmpdump.mk | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/package/rtmpdump/rtmpdump.mk b/package/rtmpdump/rtmpdump.mk
index 4a8a1b0..684e0cf 100644
--- a/package/rtmpdump/rtmpdump.mk
+++ b/package/rtmpdump/rtmpdump.mk
@@ -31,6 +31,8 @@ RTMPDUMP_CFLAGS = $(TARGET_CFLAGS)
ifneq ($(BR2_PREFER_STATIC_LIB),y)
RTMPDUMP_CFLAGS += -fPIC
+else
+ RTMPDUMP_SHARED = "SHARED="
endif
define RTMPDUMP_BUILD_CMDS
@@ -39,15 +41,16 @@ define RTMPDUMP_BUILD_CMDS
XCFLAGS="$(RTMPDUMP_CFLAGS)" \
XLDFLAGS="$(TARGET_CFLAGS)" \
CROSS_COMPILE="$(TARGET_CROSS)" \
+ $(RTMPDUMP_SHARED) \
-C $(@D)/librtmp
endef
define RTMPDUMP_INSTALL_STAGING_CMDS
- $(MAKE) prefix=/usr -C $(@D)/librtmp install DESTDIR=$(STAGING_DIR)
+ $(MAKE) prefix=/usr -C $(@D)/librtmp install DESTDIR=$(STAGING_DIR) $(RTMPDUMP_SHARED)
endef
define RTMPDUMP_INSTALL_TARGET_CMDS
- $(MAKE) prefix=/usr -C $(@D)/librtmp install DESTDIR=$(TARGET_DIR)
+ $(MAKE) prefix=/usr -C $(@D)/librtmp install DESTDIR=$(TARGET_DIR) $(RTMPDUMP_SHARED)
endef
$(eval $(generic-package))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] package/rtmpdump: Fix static build
2014-07-27 7:57 [Buildroot] [PATCH 1/1] package/rtmpdump: Fix static build Bernd Kuhls
@ 2014-07-27 8:30 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-07-27 8:30 UTC (permalink / raw)
To: buildroot
Dear Bernd Kuhls,
On Sun, 27 Jul 2014 09:57:20 +0200, Bernd Kuhls wrote:
> Fixes
> http://autobuild.buildroot.net/results/04c/04cc4f4878466715d980442bd7114fecbeb51c0b/
>
> Quote from README:
>
> A shared library is now built by default, in addition to the static
> library. You can also turn it off if desired
>
> $ make SHARED=
>
> The rtmpdump programs still link to the static library, regardless.
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> package/rtmpdump/rtmpdump.mk | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-27 8:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-27 7:57 [Buildroot] [PATCH 1/1] package/rtmpdump: Fix static build Bernd Kuhls
2014-07-27 8:30 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox