jjb: fix compiler version for bionic
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 22 Feb 2019 21:56:58 +0000 (16:56 -0500)
committerMichael Jeanson <mjeanson@efficios.com>
Fri, 22 Feb 2019 21:56:58 +0000 (16:56 -0500)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
scripts/lttng-modules/param-build.sh

index a3ec5f2ac1bbcf33e7779f1442ca7ced07d56b25..7d5eb6eed4d5d341623384dad2f6cc96d5f5a18d 100644 (file)
@@ -92,7 +92,7 @@ select_compiler() {
 
     set +e
 
-    for cc in gcc-7 gcc-5 gcc-4.9; do
+    for cc in gcc-7 gcc-5 gcc-4.8; do
       if "${CROSS_COMPILE:-}${cc}" -I include/ -D__LINUX_COMPILER_H -D__LINUX_COMPILER_TYPES_H -E include/linux/compiler-gcc.h; then
         selected_cc="$cc"
         break
@@ -110,13 +110,13 @@ select_compiler() {
     if { vergte "$kversion" "3.2" && verlt "$kversion" "3.3"; } || \
        { vergte "$kversion" "3.4" && verlt "$kversion" "3.5"; } || \
        { vergte "$kversion" "3.17" && verlt "$kversion" "3.18"; }; then
-      selected_cc=gcc-4.9
+      selected_cc=gcc-4.8
     fi
 
     case "$ktag" in
       Ubuntu*)
         if { vergte "$kversion" "3.13" && verlt "$kversion" "3.14"; }; then
-          selected_cc=gcc-4.9
+          selected_cc=gcc-4.8
         fi
       ;;
     esac
@@ -173,7 +173,7 @@ build_linux_kernel() {
     fi
 
     # Fix syntax of inline assembly which is confused with C++11 raw strings on gcc >= 5
-    if [ "$CC" != "gcc-4.9" ]; then
+    if [ "$CC" != "gcc-4.8" ]; then
       if [ -f "arch/x86/kvm/svm.c" ]; then
         sed -i 's/ R"/ R "/g; s/"R"/" R "/g' arch/x86/kvm/svm.c
       fi
This page took 0.023719 seconds and 4 git commands to generate.