diff --git a/test/testit b/test/testit index f34ab35..69669ff 100755 --- a/test/testit +++ b/test/testit @@ -48,6 +48,12 @@ if [ -z "$CXX_LANG" ] then CXX_LANG=c++17 fi + +if expr "$CXX" : ".*g++" >/dev/null +then + OPTIONS="$OPTIONS -pthread" +fi + OPTIONS="-std=${CXX_LANG} $OPTIONS -I$ROOT -Wall $ROOT/src/tz.cpp -lcurl" echo $ROOT