configure: set -Wno-error later for tcc, to override -Werror.
This commit is contained in:
parent
899b8e7abb
commit
815754a0e9
8
configure
vendored
8
configure
vendored
@ -190,10 +190,6 @@ fi
|
|||||||
echo "CC = $CC" >>$CONFIG_MK
|
echo "CC = $CC" >>$CONFIG_MK
|
||||||
echo "CFLAGS = -O2" >>$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 "LDFLAGS = -L\$(TOPDIR)/lib" >>$CONFIG_MK
|
||||||
echo "CPPFLAGS = -I. -I\$(TOPDIR) -I\$(TOPDIR)/include" >>$CONFIG_MK
|
echo "CPPFLAGS = -I. -I\$(TOPDIR) -I\$(TOPDIR)/include" >>$CONFIG_MK
|
||||||
echo "CPPFLAGS += -DXBPS_SYSCONF_PATH=\\\"${ETCDIR}\\\"" >>$CONFIG_MK
|
echo "CPPFLAGS += -DXBPS_SYSCONF_PATH=\\\"${ETCDIR}\\\"" >>$CONFIG_MK
|
||||||
@ -350,6 +346,10 @@ if [ -n "$CPPFLAGS" ]; then
|
|||||||
echo "CPPFLAGS += $CPPFLAGS" >>$CONFIG_MK
|
echo "CPPFLAGS += $CPPFLAGS" >>$CONFIG_MK
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$CC" = "tcc" ]; then
|
||||||
|
echo "CFLAGS += -Wno-error" >>$CONFIG_MK
|
||||||
|
fi
|
||||||
|
|
||||||
# libfetch
|
# libfetch
|
||||||
echo "CPPFLAGS += -I\$(TOPDIR)/lib/fetch" >>$CONFIG_MK
|
echo "CPPFLAGS += -I\$(TOPDIR)/lib/fetch" >>$CONFIG_MK
|
||||||
echo "LDFLAGS += -lssl" >>$CONFIG_MK
|
echo "LDFLAGS += -lssl" >>$CONFIG_MK
|
||||||
|
Loading…
Reference in New Issue
Block a user