Author: Dharanendiran <dharanendiran@timesys.com>
Date: Mon, 22 Jun 2026 10:22:26 +0530

Error log:

.libs/libva_la-va.o: In function `va_parseConfig':
/media/timesys/factory/build_i686-timesys-linux-uclibc/libva-2.14.0/libva-2.14.0/va/va.c:110: undefined reference to `__stack_chk_fail_local'
.libs/libva_la-va.o: In function `va_MessagingInit':
/media/timesys/factory/build_i686-timesys-linux-uclibc/libva-2.14.0/libva-2.14.0/va/va.c:201: undefined reference to `__stack_chk_fail_local'
.libs/libva_la-va.o: In function `va_errorMessage':
/media/timesys/factory/build_i686-timesys-linux-uclibc/libva-2.14.0/libva-2.14.0/va/va.c:231: undefined reference to `__stack_chk_fail_local'
.libs/libva_la-va.o: In function `va_infoMessage':
/media/timesys/factory/build_i686-timesys-linux-uclibc/libva-2.14.0/libva-2.14.0/va/va.c:261: undefined reference to `__stack_chk_fail_local'
.libs/libva_la-va.o: In function `va_openDriver':
/media/timesys/factory/build_i686-timesys-linux-uclibc/libva-2.14.0/libva-2.14.0/va/va.c:593: undefined reference to `__stack_chk_fail_local'
.libs/libva_la-va_fool.o:/media/timesys/factory/build_i686-timesys-linux-uclibc/libva-2.14.0/libva-2.14.0/va/va_fool.c:310: more undefined references to `__stack_chk_fail_local' follow
collect2: error: ld ret

---
 configure | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/configure b/configure
index 2f240f4..f0f2403 100755
--- a/configure
+++ b/configure
@@ -17459,6 +17459,15 @@ else
 fi


+# --------------------------------------------------------------------
+# Allow manual disable of stack protector flags via environment variable
+# Example: export LIBVA_DISABLE_STACK_PROTECTOR=1
+# --------------------------------------------------------------------
+if test "x$LIBVA_DISABLE_STACK_PROTECTOR" = "x1"; then
+    CFLAGS="$CFLAGS -fno-stack-protector"
+    ssp_cc=no
+# Skip the rest of the detection code safely
+else
 # Check for -fstack-protector
 ssp_cc=yes
 if test "X$CC-cc" != "X"; then
@@ -17494,6 +17503,8 @@ $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h

     fi
 fi
+fi
+
  if test "$ssp_cc" = "yes"; then
   USE_SSP_TRUE=
   USE_SSP_FALSE='#'
-- 
2.25.1

