mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 12:16:41 +02:00
sys-boot/gnu-efi: Sync with Gentoo
It's from Gentoo commit a786643b846ca4f1c12121f3a3a82b47229e8c25.
This commit is contained in:
parent
79ee239e09
commit
f8cafe1a70
@ -42,7 +42,7 @@ check_and_set_objcopy() {
|
||||
# llvm-objcopy does not support EFI target, try to use binutils objcopy or fail
|
||||
tc-export OBJCOPY
|
||||
OBJCOPY="${OBJCOPY/llvm-/}"
|
||||
LANG=C LC_ALL=C "${OBJCOPY}" --help | grep -q '\<pei-' || die "${OBJCOPY} (objcopy) does not support EFI target"
|
||||
LC_ALL=C "${OBJCOPY}" --help | grep -q '\<pei-' || die "${OBJCOPY} (objcopy) does not support EFI target"
|
||||
fi
|
||||
}
|
||||
|
||||
@ -103,9 +103,9 @@ src_compile() {
|
||||
# bug #933080, #938012
|
||||
local CPPINCLUDEDIR
|
||||
if tc-is-gcc; then
|
||||
CPPINCLUDEDIR=$(LANG=C ${CC} -print-search-dirs 2> /dev/null | grep ^install: | cut -f2 -d' ')/include
|
||||
CPPINCLUDEDIR=$(LC_ALL=C ${CC} -print-search-dirs 2> /dev/null | grep ^install: | cut -f2 -d' ')/include
|
||||
elif tc-is-clang; then
|
||||
CPPINCLUDEDIR=$(LANG=C ${CC} -print-resource-dir 2> /dev/null)/include
|
||||
CPPINCLUDEDIR=$(LC_ALL=C ${CC} -print-resource-dir 2> /dev/null)/include
|
||||
fi
|
||||
append-cflags "-nostdinc -isystem ${CPPINCLUDEDIR} -isystem ${ESYSROOT}/usr/include"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user