Skip to content

Commit aa7bba6

Browse files
committed
test
1 parent 923eed7 commit aa7bba6

20 files changed

+133
-106
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ add_definitions(-DCATCHUP_VERSION=${CATCHUP_VERSION})
9494

9595
build_addon(inputstream.ffmpegdirect CATCHUP DEPLIBS)
9696

97+
set_target_properties(inputstream.ffmpegdirect PROPERTIES LINK_FLAGS "${FFMPEG_LDFLAGS}")
98+
9799
if(CORE_SYSTEM_NAME STREQUAL windowsstore)
98100
# fix linking
99101
set_target_properties(inputstream.ffmpegdirect PROPERTIES LINK_FLAGS_RELWITHDEBINFO "/LTCG /defaultlib:vccorlib.lib /defaultlib:msvcrt.lib")

FindFFMPEG.cmake

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,22 +179,25 @@ if(NOT ENABLE_INTERNAL_FFMPEG OR KODI_DEPENDSBUILD)
179179
if(FFMPEG_FOUND)
180180
set(FFMPEG_LDFLAGS ${PC_FFMPEG_LDFLAGS} CACHE STRING "ffmpeg linker flags")
181181

182+
set(FFMPEG_LIBRARIES ${FFMPEG_LIBAVCODEC} ${FFMPEG_LIBAVFILTER}
183+
${FFMPEG_LIBAVFORMAT} ${FFMPEG_LIBAVUTIL}
184+
${FFMPEG_LIBSWSCALE} ${FFMPEG_LIBSWRESAMPLE}
185+
${FFMPEG_LIBPOSTPROC} ${FFMPEG_LDFLAGS})
186+
list(APPEND FFMPEG_DEFINITIONS -DFFMPEG_VER_SHA=\"${FFMPEG_VERSION}\")
187+
182188
# check if ffmpeg libs are statically linked
183189
set(FFMPEG_LIB_TYPE SHARED)
184190
foreach(_fflib IN LISTS FFMPEG_LIBRARIES)
185191
if(${_fflib} MATCHES ".+\.a$" AND PC_FFMPEG_STATIC_LDFLAGS)
186192
set(FFMPEG_LDFLAGS ${PC_FFMPEG_STATIC_LDFLAGS} CACHE STRING "ffmpeg linker flags" FORCE)
187193
set(FFMPEG_LIB_TYPE STATIC)
194+
if(NOT APPLE AND NOT WIN32)
195+
set(FFMPEG_LDFLAGS "-Wl,-Bsymbolic ${FFMPEG_LDFLAGS}")
196+
endif()
188197
break()
189198
endif()
190199
endforeach()
191200
192-
set(FFMPEG_LIBRARIES ${FFMPEG_LIBAVCODEC} ${FFMPEG_LIBAVFILTER}
193-
${FFMPEG_LIBAVFORMAT} ${FFMPEG_LIBAVUTIL}
194-
${FFMPEG_LIBSWSCALE} ${FFMPEG_LIBSWRESAMPLE}
195-
${FFMPEG_LIBPOSTPROC} ${FFMPEG_LDFLAGS})
196-
list(APPEND FFMPEG_DEFINITIONS -DFFMPEG_VER_SHA=\"${FFMPEG_VERSION}\")
197-
198201
if(NOT TARGET ffmpeg)
199202
add_library(ffmpeg ${FFMPEG_LIB_TYPE} IMPORTED)
200203
set_target_properties(ffmpeg PROPERTIES
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From 7ea3c3037d1c385001eccd850059bfa137288979 Mon Sep 17 00:00:00 2001
2+
From: Alwin Esch <alwin.esch@web.de>
3+
Date: Wed, 15 Jan 2020 03:46:11 +0100
4+
Subject: [PATCH] hack fix
5+
6+
---
7+
configure | 2 +-
8+
1 file changed, 1 insertion(+), 1 deletion(-)
9+
10+
diff --git a/configure b/configure
11+
index 34c2adb..957e502 100755
12+
--- a/configure
13+
+++ b/configure
14+
@@ -1569,7 +1569,7 @@ require_cpp_condition(){
15+
require_pkg_config(){
16+
log require_pkg_config "$@"
17+
pkg_version="$2"
18+
- check_pkg_config "$@" || die "ERROR: $pkg_version not found using pkg-config$pkg_config_fail_message"
19+
+ check_pkg_config "$@" || echo "ERROR: $pkg_version not found using pkg-config$pkg_config_fail_message"
20+
}
21+
22+
test_host_cc(){
23+
--
24+
2.20.1
25+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From e70f8aad605e17795d9bc351850ca0a37ad0071d Mon Sep 17 00:00:00 2001
2+
From: Alwin Esch <alwin.esch@web.de>
3+
Date: Wed, 15 Jan 2020 10:04:53 +0100
4+
Subject: [PATCH] fix build test with this as static on ffmpeg
5+
6+
---
7+
configure | 2 ++
8+
1 file changed, 2 insertions(+)
9+
10+
diff --git a/configure b/configure
11+
index 957e502..f108564 100755
12+
--- a/configure
13+
+++ b/configure
14+
@@ -7,6 +7,8 @@
15+
# Copyright (c) 2005-2008 Mans Rullgard
16+
#
17+
18+
+export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(pkg-config --variable pc_path pkg-config)"
19+
+
20+
# Prevent locale nonsense from breaking basic text processing.
21+
LC_ALL=C
22+
export LC_ALL
23+
--
24+
2.20.1
25+

depends/common/ffmpeg/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ message(STATUS "FFMPEG_CONF: ${ffmpeg_conf}")
9292
include(ExternalProject)
9393
externalproject_add(ffmpeg
9494
SOURCE_DIR ${CMAKE_SOURCE_DIR}
95-
CONFIGURE_COMMAND ${CMAKE_SOURCE_DIR}/configure
95+
CONFIGURE_COMMAND PKG_CONFIG_PATH=${CMAKE_INSTALL_PREFIX}/lib/pkgconfig ${CMAKE_SOURCE_DIR}/configure
9696
--prefix=${CMAKE_INSTALL_PREFIX}
9797
--extra-version="kodi-${FFMPEG_VER}"
9898
--disable-devices
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From fbadba3529a7f02b62b3fe879b7055f2229baad4 Mon Sep 17 00:00:00 2001
2+
From: Alwin Esch <alwin.esch@web.de>
3+
Date: Wed, 15 Jan 2020 09:48:08 +0100
4+
Subject: [PATCH] fix build test with this as static on ffmpeg
5+
6+
---
7+
lib/gnutls.pc.in | 2 +-
8+
1 file changed, 1 insertion(+), 1 deletion(-)
9+
10+
diff --git a/lib/gnutls.pc.in b/lib/gnutls.pc.in
11+
index ffad3e1..99f943b 100644
12+
--- a/lib/gnutls.pc.in
13+
+++ b/lib/gnutls.pc.in
14+
@@ -18,7 +18,7 @@ Name: GnuTLS
15+
Description: Transport Security Layer implementation for the GNU system
16+
URL: https://www.gnutls.org/
17+
Version: @VERSION@
18+
-Libs: -L${libdir} -lgnutls
19+
+Libs: -L${libdir} -lgnutls @HOGWEED_LIBS@ @NETTLE_LIBS@ @GMP_LIBS@ @LIBDL@ @LIBIDN2_LIBS@
20+
Libs.private: @LIBINTL@ @LIBSOCKET@ @INET_PTON_LIB@ @LIBPTHREAD@ @LIB_SELECT@ @TSS_LIBS@ @GMP_LIBS@ @LIBUNISTRING@ @LIBIDN2_LIBS@ @LIBATOMIC_LIBS@
21+
@GNUTLS_REQUIRES_PRIVATE@
22+
Cflags: -I${includedir}
23+
--
24+
2.20.1
25+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff -ur gnutls/lib/global.c gnutls-patched/lib/global.c
2+
--- gnutls/lib/global.c 2020-01-16 22:56:42.000000000 +0000
3+
+++ gnutls-patched/lib/global.c 2020-01-16 22:57:50.000000000 +0000
4+
@@ -54,7 +54,7 @@
5+
#endif
6+
7+
#ifndef _WIN32
8+
-int __attribute__((weak)) _gnutls_global_init_skip(void);
9+
+int __attribute__((weak_import)) _gnutls_global_init_skip(void);
10+
int _gnutls_global_init_skip(void)
11+
{
12+
return 0;

depends/common/gnutls/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@ externalproject_add(gnutls
1616
--prefix=${CMAKE_INSTALL_PREFIX}
1717
--disable-shared
1818
--without-p11-kit
19+
--without-idn
1920
--disable-nls
2021
--with-included-unistring
2122
--with-included-libtasn1
2223
--enable-local-libopts
24+
--without-nettle-mini
2325
--disable-doc
2426
--disable-tests
2527
--disable-guile
28+
--with-pic
2629
${gnutls_conf})
2730

2831
install(CODE "Message(Done)")

depends/common/gnutls/Makefile

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)