diff --git a/base/gcc/parse-config b/base/gcc/parse-config index a21abeaa2..a044d7965 100644 --- a/base/gcc/parse-config +++ b/base/gcc/parse-config @@ -18,7 +18,11 @@ # if [ "${SDECFG_DEFAULT_CC:0:3}" = "gcc" -a "$SDECFG_PKG_GCC_STACKPRO" = 1 ]; then if ! hasflag NO-SSP; then - var_append GCC_WRAPPER_INSERT ' ' '-fstack-protector' + if pkginstalled -f gcc; then + var_append GCC_WRAPPER_INSERT ' ' '-fstack-protector' + else + echo_warning 'Disabling GCC stack-protector (not supported by toolchain gcc)' + fi else echo_warning 'Package incompatible with GCC stack-protector, disabled' fi