From e712a2832fb3a84c92e9f1322654a66bdae6299f Mon Sep 17 00:00:00 2001 From: bobzinin Date: Mon, 1 Dec 2025 21:11:31 +0300 Subject: [PATCH 1/2] Remove default OPT=-O for non-GCC compilers The configure script was setting OPT="-O" by default for non-GCC compilers, which could conflict with user-specified CFLAGS. This change removes the automatic default, allowing users full control over optimization flags via CFLAGS without unexpected conflicts. --- configure.ac | 4 ---- 1 file changed, 4 deletions(-) diff --git a/configure.ac b/configure.ac index 8ef479fe32036c..86bc3e832921a6 100644 --- a/configure.ac +++ b/configure.ac @@ -2338,10 +2338,6 @@ then ;; esac ;; - - *) - OPT="-O" - ;; esac fi From 6dc84632ab77a968b7c6114bc04dd73f05c92572 Mon Sep 17 00:00:00 2001 From: bobzinin Date: Mon, 1 Dec 2025 22:19:53 +0300 Subject: [PATCH 2/2] Remove default OPT=-O for non-GCC compilers --- configure | 6 +----- configure.ac | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 620878bb181378..e0fa1aa0ec750e 100755 --- a/configure +++ b/configure @@ -9619,11 +9619,7 @@ then case $ac_sys_system in SCO_SV*) OPT="$OPT -m486 -DSCO5" ;; - esac - ;; - - *) - OPT="-O" + esac ;; esac fi diff --git a/configure.ac b/configure.ac index 86bc3e832921a6..eb6fb6612b8bdd 100644 --- a/configure.ac +++ b/configure.ac @@ -2336,7 +2336,7 @@ then case $ac_sys_system in SCO_SV*) OPT="$OPT -m486 -DSCO5" ;; - esac + esac ;; esac fi