From cb0bf6d9143dc923f2fd3773a3a45971e05e953f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 22 Apr 2019 16:18:41 +0200 Subject: [PATCH] configure: detect tcc if in PATH; fix tcc build. Adding -pthread to CFLAGS is unnecessary because the bins don't need it explicitly, so that it's removed and we only need to use -lpthread on libxbps. --- configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 7b3cb538..530e1db6 100755 --- a/configure +++ b/configure @@ -165,7 +165,7 @@ echo "ETCDIR ?= $ETCDIR" >>$CONFIG_MK if [ -z "$CC" ]; then printf "Looking for compiler ... " for b in $TARGET- ""; do - for cc in gcc pcc icc cc clang; do + for cc in gcc icc clang tcc pcc cc; do if type $b$cc >/dev/null 2>&1; then CC=$b$cc echo "$CC" @@ -183,8 +183,8 @@ else echo "Using compiler $CC" fi -echo "CC = $CC" >>$CONFIG_MK -echo "CFLAGS = -O2 -pthread" >>$CONFIG_MK +echo "CC = $CC" >>$CONFIG_MK +echo "CFLAGS = -O2" >>$CONFIG_MK echo "LDFLAGS = -L\$(TOPDIR)/lib" >>$CONFIG_MK echo "CPPFLAGS = -I. -I\$(TOPDIR) -I\$(TOPDIR)/include" >>$CONFIG_MK