ifeq ($(CONFIG_W_UNUSED_RESULT),yes)
CFLAGS += -Wunused-result
endif
-CFLAGS += -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations
+ifneq ($(CFLAGS_NO_WERROR),yes)
+CFLAGS += -Werror
+endif
+CFLAGS += -Wall -Wwrite-strings -Wno-deprecated-declarations
CFLAGS += -Wmissing-prototypes
CFLAGS += -fms-extensions -funsigned-char -fno-strict-aliasing
CFLAGS += -D_FILE_OFFSET_BITS=64
gzip)
eval "$(toupper ${opt}CMD)=\"$val\""
;;
- cc|cflags|ldflags|arch|cpu|platform|python|bzip2)
+ cc|cflags|ldflags|arch|cpu|platform|python|bzip2|nowerror)
eval "$(toupper $opt)=\"$val\""
;;
enable-*)
printf " $fmt Build and optimize for specific CPU\n" "--cpu=CPU"
printf " $fmt Build for architecture [$ARCH]\n" "--arch=ARCH"
printf " $fmt Build for platform [$PLATFORM]\n" "--platform=PLATFORM"
+ printf " $fmt Build without -Werror CFLAGS" "--nowerror"
printf " $fmt Use python binary [$PYTHON]\n" "--python=PYTHON"
echo ""
echo "Options"
libdir = ${libdir}
EOF
+ # no -Werror
+ if test -n "${NOWERROR}"; then
+ echo "CFLAGS_NO_WERROR = yes" >> "${CONFIG_MK}"
+ fi
+
# Create C include
CONFIG_H="${BUILDDIR}/build.h"
cat > "${CONFIG_H}" <<EOF