--- libelwix/configure 2024/08/14 16:09:47 1.69.2.1 +++ libelwix/configure 2024/08/19 12:57:46 1.69.2.2 @@ -3938,7 +3938,11 @@ fi -CFLAGS="-Wall -O2 -fPIC ${CFLAGS}" +if test "${ac_cv_env_CFLAGS_set}" != "set"; then + CFLAGS="-Wall -O2 -fPIC" +else + CFLAGS="${ac_cv_env_CFLAGS_value}" +fi LDFLAGS="${LDFLAGS}"