diff options
Diffstat (limited to 'dynamic-layers/meta-intel/recipes-multimedia')
2 files changed, 33 insertions, 0 deletions
diff --git a/dynamic-layers/meta-intel/recipes-multimedia/mediasdk/intel-mediasdk/intel-mediasdk-20.5.1-no-lgcc.patch b/dynamic-layers/meta-intel/recipes-multimedia/mediasdk/intel-mediasdk/intel-mediasdk-20.5.1-no-lgcc.patch new file mode 100644 index 0000000..866dbcd --- /dev/null +++ b/dynamic-layers/meta-intel/recipes-multimedia/mediasdk/intel-mediasdk/intel-mediasdk-20.5.1-no-lgcc.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | Author: Bernhard Rosenkraenzer <bernhard.rosenkraenzer.ext@huawei.com> | ||
2 | |||
3 | Remove -lgcc -- it's unneeded and breaks building with compiler-rt. | ||
4 | |||
5 | Signed-off-by: Bernhard Rosenkraenzer <bernhard.rosenkraenzer.ext@huawei.com> | ||
6 | Upstream-Status: Pending | ||
7 | |||
8 | diff -up git/builder/FindFunctions.cmake.omv~ git/builder/FindFunctions.cmake | ||
9 | --- git/builder/FindFunctions.cmake.omv~ 2021-06-03 20:35:11.230895070 +0200 | ||
10 | +++ git/builder/FindFunctions.cmake 2021-06-03 20:35:49.750360067 +0200 | ||
11 | @@ -200,10 +200,6 @@ function( make_library name variant type | ||
12 | set_target_properties( ${target} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BIN_DIR}/${CMAKE_BUILD_TYPE} FOLDER ${folder} ) | ||
13 | set_target_properties( ${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_LIB_DIR}/${CMAKE_BUILD_TYPE} FOLDER ${folder} ) | ||
14 | |||
15 | - if( Linux ) | ||
16 | - target_link_libraries( ${target} "-lgcc" ) | ||
17 | - endif() | ||
18 | - | ||
19 | set( target ${target} PARENT_SCOPE ) | ||
20 | endfunction() | ||
21 | |||
22 | @@ -278,7 +274,7 @@ function( make_executable name variant ) | ||
23 | endforeach() | ||
24 | |||
25 | if( Linux ) | ||
26 | - target_link_libraries( ${target} "-Xlinker --end-group -lgcc" ) | ||
27 | + target_link_libraries( ${target} "-Xlinker --end-group" ) | ||
28 | endif() | ||
29 | |||
30 | set( target ${target} PARENT_SCOPE ) | ||
diff --git a/dynamic-layers/meta-intel/recipes-multimedia/mediasdk/intel-mediasdk_%.bbappend b/dynamic-layers/meta-intel/recipes-multimedia/mediasdk/intel-mediasdk_%.bbappend new file mode 100644 index 0000000..d070d03 --- /dev/null +++ b/dynamic-layers/meta-intel/recipes-multimedia/mediasdk/intel-mediasdk_%.bbappend | |||
@@ -0,0 +1,3 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
2 | |||
3 | SRC_URI_append_toolchain-clang = " file://intel-mediasdk-20.5.1-no-lgcc.patch" | ||