aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorAndrew Manison <amanison@anselsystems.com>2010-07-18 01:50:47 +0000
committerAndrew Manison <amanison@anselsystems.com>2010-07-18 01:50:47 +0000
commit4b1b9accb0530e72ce615488ce5afe69185aeb7b (patch)
treeeb206aba3a6b611cf49192ec5035d31df00b3ba8 /main
parent9896c5daeb30999e836d97664ee62506aec3b2fe (diff)
downloadaports-4b1b9accb0530e72ce615488ce5afe69185aeb7b.tar.bz2
aports-4b1b9accb0530e72ce615488ce5afe69185aeb7b.tar.xz
Added default setting for CC in APKBUILD.
Diffstat (limited to 'main')
-rw-r--r--main/linux-vserver/APKBUILD10
1 files changed, 5 insertions, 5 deletions
diff --git a/main/linux-vserver/APKBUILD b/main/linux-vserver/APKBUILD
index d9aaf94794..8d7134936a 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