mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-28 06:14:38 +00:00
800557a248
* Downgrade glibc to 2.27 for L4T Builds. * Downgrade binutils to 2.32 for L4T Builds. * Update L4T Project Options * Refactor tegra-bsp package * Import/Rebase CTC's ffmpeg patches, and switch decoder to nvv4l2 from nvmpi. Fixes decoder issues * Enable all disabled cores * Remove hack in busybox package to dump firmware into L4T Builds, we now handle this in tegra-bsp package. * More L4T project cleanups * Bring switch-bootloader package.mk inline with upstream formatting * Fix reboot_payload * Add proper tegra-bsp:init support * Bootloader cleanups, seperate bootloader stuff for libreelec builds * Update init for supporting all distros on Nintendo Switch * Add proper splash images for libreelec builds. * Final bootloader fixes * switch-bootloader-merge-fixes * Fix uboot merge issues * fix bmp * It all builds * add Basic USB Gadget(Serial console only) * Properly fix mtp, and finish gadget stuff
33 lines
1.5 KiB
Diff
33 lines
1.5 KiB
Diff
simplified patch based on
|
|
http://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-devtools/binutils/binutils/0009-warn-for-uses-of-system-directories-when-cross-linki.patch
|
|
just detect and skip system directories if used by mistake
|
|
|
|
linker output in case of using /usr/lib path:
|
|
/data/LibreELEC.tv/build.LibreELEC-Generic.x86_64-8.0-devel/toolchain/lib/gcc/x86_64-libreelec-linux-gnu/6.2.0/../../../../x86_64-libreelec-linux-gnu/bin/ld: warning: library search path "/usr/lib" is unsafe for cross-compilation, ignore it
|
|
|
|
From 7ab8e318659eb5d9adc758c78d084a95560b93fd Mon Sep 17 00:00:00 2001
|
|
From: Khem Raj <raj.khem@gmail.com>
|
|
Date: Fri, 15 Jan 2016 06:31:09 +0000
|
|
Subject: [PATCH 09/13] warn for uses of system directories when cross linking
|
|
|
|
--- a/ld/ldfile.c 2015-11-13 09:27:42.000000000 +0100
|
|
+++ b/ld/ldfile.c 2016-11-15 19:09:31.658371254 +0100
|
|
@@ -102,6 +102,17 @@ ldfile_add_library_path (const char *nam
|
|
if (!cmdline && config.only_cmd_line_lib_dirs)
|
|
return;
|
|
|
|
+ /* skip those directories when linking */
|
|
+ if ((!strncmp (name, "/lib", 4)) ||
|
|
+ (!strncmp (name, "/usr/lib", 8)) ||
|
|
+ (!strncmp (name, "/usr/local/lib", 14)) ||
|
|
+ (!strncmp (name, "/usr/X11R6/lib", 14)))
|
|
+ {
|
|
+ einfo (_("%P: warning: library search path \"%s\" is unsafe for "
|
|
+ "cross-compilation, ignore it\n"), name);
|
|
+ return;
|
|
+ }
|
|
+
|
|
new_dirs = (search_dirs_type *) xmalloc (sizeof (search_dirs_type));
|
|
new_dirs->next = NULL;
|
|
new_dirs->cmdline = cmdline;
|