aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-11-24 15:25:36 +0200
committerTimo Teräs <timo.teras@iki.fi>2016-11-24 15:26:02 +0200
commitdf88dd55051828b469e64d7e743ce259aca83f9e (patch)
tree601980a032c751e3dc41ded14d069cd016a26fa1 /main
parent386aab2ad0e7becf3db1de3fc70d124cd85f5d47 (diff)
downloadaports-df88dd55051828b469e64d7e743ce259aca83f9e.tar.bz2
aports-df88dd55051828b469e64d7e743ce259aca83f9e.tar.xz
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
Diffstat (limited to 'main')
-rw-r--r--main/linux-vanilla/APKBUILD6
1 files changed, 2 insertions, 4 deletions
diff --git a/main/linux-vanilla/APKBUILD b/main/linux-vanilla/APKBUILD
index 8bd0cf421f..c9db8412c5 100644
--- a/main/linux-vanilla/APKBUILD
+++ b/main/linux-vanilla/APKBUILD
@@ -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} \