Commit d91daf05 authored by Natanael Copa's avatar Natanael Copa

main/linux-grsec: fallback to gcc in case CC is not set

parent fbea38f9
...@@ -55,7 +55,7 @@ prepare() { ...@@ -55,7 +55,7 @@ prepare() {
mkdir -p "$srcdir"/build mkdir -p "$srcdir"/build
cp "$srcdir"/$_config "$srcdir"/build/.config 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 silentoldconfig
} }
...@@ -68,7 +68,7 @@ menuconfig() { ...@@ -68,7 +68,7 @@ menuconfig() {
build() { build() {
cd "$srcdir"/build cd "$srcdir"/build
make CC="$CC" || return 1 make CC="${CC:--gcc}" || return 1
} }
package() { package() {
...@@ -99,7 +99,7 @@ dev() { ...@@ -99,7 +99,7 @@ dev() {
# external modules, and create the scripts # external modules, and create the scripts
mkdir -p "$dir" mkdir -p "$dir"
cp "$srcdir"/$_config "$dir"/.config 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 silentoldconfig prepare scripts
# remove the stuff that poits to real sources. we want 3rd party # remove the stuff that poits to real sources. we want 3rd party
......
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