From 815754a0e952dcad77bcd22de47fab0f2cda7c5e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 26 Jun 2019 15:48:46 +0200 Subject: [PATCH] configure: set -Wno-error later for tcc, to override -Werror. --- configure | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure b/configure index b308746b..c84d7d94 100755 --- a/configure +++ b/configure @@ -190,10 +190,6 @@ fi echo "CC = $CC" >>$CONFIG_MK echo "CFLAGS = -O2" >>$CONFIG_MK -if [ "$CC" = "tcc" ]; then - echo "CFLAGS += -Wno-error" >>$CONFIG_MK -fi - echo "LDFLAGS = -L\$(TOPDIR)/lib" >>$CONFIG_MK echo "CPPFLAGS = -I. -I\$(TOPDIR) -I\$(TOPDIR)/include" >>$CONFIG_MK echo "CPPFLAGS += -DXBPS_SYSCONF_PATH=\\\"${ETCDIR}\\\"" >>$CONFIG_MK @@ -350,6 +346,10 @@ if [ -n "$CPPFLAGS" ]; then echo "CPPFLAGS += $CPPFLAGS" >>$CONFIG_MK fi +if [ "$CC" = "tcc" ]; then + echo "CFLAGS += -Wno-error" >>$CONFIG_MK +fi + # libfetch echo "CPPFLAGS += -I\$(TOPDIR)/lib/fetch" >>$CONFIG_MK echo "LDFLAGS += -lssl" >>$CONFIG_MK