Commit df88dd55 authored by Timo Teräs's avatar Timo Teräs

main/linux-vanilla: fix -fno-pie location

KCFLAGS is too late for gcc flags detection logic. So embed the
-fno-pie flag directly to CC. This fixes the error:
Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
parent 386aab2a
......@@ -7,7 +7,7 @@ case $pkgver in
*.*.*) _kernver=${pkgver%.*};;
*.*) _kernver=$pkgver;;
esac
pkgrel=1
pkgrel=2
pkgdesc="Linux vanilla kernel"
url="http://kernel.org"
depends="mkinitfs linux-firmware"
......@@ -84,8 +84,7 @@ menuconfig() {
build() {
cd "$srcdir"/build
make ARCH="$_carch" CC="${CC:-gcc}" \
KCFLAGS="-fno-pie" \
make ARCH="$_carch" CC="${CC:-gcc} -fno-pie" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine" \
|| return 1
}
......@@ -103,7 +102,6 @@ package() {
make -j1 modules_install firmware_install $_install \
ARCH="$_carch" \
KCFLAGS="-fno-pie" \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_PATH="$pkgdir"/boot \
INSTALL_DTBS_PATH="$pkgdir"/usr/lib/linux-${_abi_release} \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment