From 4b1b9accb0530e72ce615488ce5afe69185aeb7b Mon Sep 17 00:00:00 2001 From: Andrew Manison Date: Sun, 18 Jul 2010 01:50:47 +0000 Subject: Added default setting for CC in APKBUILD. --- main/linux-vserver/APKBUILD | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main/linux-vserver/APKBUILD b/main/linux-vserver/APKBUILD index d9aaf9479..8d7134936 100644 --- a/main/linux-vserver/APKBUILD +++ b/main/linux-vserver/APKBUILD @@ -37,7 +37,7 @@ prepare() { mkdir -p "$srcdir"/build cp "$srcdir"/$_config "$srcdir"/build/.config - make -C "$srcdir"/linux-$_kernver O="$srcdir"/build HOSTCC="$CC" \ + make -C "$srcdir"/linux-$_kernver O="$srcdir"/build HOSTCC="${CC:-gcc}" \ silentoldconfig } @@ -64,7 +64,7 @@ package() { INSTALL_PATH="$pkgdir"/boot rm -f "$pkgdir"/lib/modules/${_abi_release}/build \ - "$pkgdir"/lib/modules/${_abi_release}/source + "$pkgdir"/lib/modules/${_abi_release}/source rm -rf "$pkgdir"/lib/firmware install -D include/config/kernel.release \ @@ -76,17 +76,17 @@ dev() { # kernel modules and install those as /usr/src/linux-headers, # simlar to what ubuntu does # - # this way you dont need to install the 300-400 kernel sources to + # this way you dont need to install the 300-400 kernel sources to # build a tiny kernel module # pkgdesc="Headers and script for third party modules for grsec kernel" local dir="$subpkgdir"/usr/src/linux-headers-${_abi_release} - # first we import config, run prepare to set up for building + # first we import config, run prepare to set up for building # external modules, and create the scripts mkdir -p "$dir" cp "$srcdir"/$_config "$dir"/.config - make -j1 -C "$srcdir"/linux-$_kernver O="$dir" HOSTCC="$CC" \ + make -j1 -C "$srcdir"/linux-$_kernver O="$dir" HOSTCC="${CC:-gcc}" \ silentoldconfig prepare scripts # remove the stuff that poits to real sources. we want 3rd party -- cgit v1.2.3