mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 14:46:31 +00:00
package/rtmpdump: Fix static build
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> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
fee0de3693
commit
9c0dff5257
@ -31,6 +31,8 @@ RTMPDUMP_CFLAGS = $(TARGET_CFLAGS)
|
|||||||
|
|
||||||
ifneq ($(BR2_PREFER_STATIC_LIB),y)
|
ifneq ($(BR2_PREFER_STATIC_LIB),y)
|
||||||
RTMPDUMP_CFLAGS += -fPIC
|
RTMPDUMP_CFLAGS += -fPIC
|
||||||
|
else
|
||||||
|
RTMPDUMP_SHARED = "SHARED="
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define RTMPDUMP_BUILD_CMDS
|
define RTMPDUMP_BUILD_CMDS
|
||||||
@ -39,15 +41,16 @@ define RTMPDUMP_BUILD_CMDS
|
|||||||
XCFLAGS="$(RTMPDUMP_CFLAGS)" \
|
XCFLAGS="$(RTMPDUMP_CFLAGS)" \
|
||||||
XLDFLAGS="$(TARGET_CFLAGS)" \
|
XLDFLAGS="$(TARGET_CFLAGS)" \
|
||||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||||
|
$(RTMPDUMP_SHARED) \
|
||||||
-C $(@D)/librtmp
|
-C $(@D)/librtmp
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define RTMPDUMP_INSTALL_STAGING_CMDS
|
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
|
endef
|
||||||
|
|
||||||
define RTMPDUMP_INSTALL_TARGET_CMDS
|
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
|
endef
|
||||||
|
|
||||||
$(eval $(generic-package))
|
$(eval $(generic-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user