]> git.stg.codes - stg.git/blobdiff - projects/sgconf/build
Merge branch 'stg-2.409' of stg.codes:stg into stg-2.409
[stg.git] / projects / sgconf / build
index 441306988911534ccc3e9817d61263bf816dedb7..7ac18e3c5519deeefa85518f263f2d30e948bac8 100755 (executable)
@@ -94,7 +94,6 @@ else
             then
                 DEFS="$DEFS -DDARWIN"
                 LIB_THREAD=-lpthread
-                LIBICONV=""
             else
                 LIB_THREAD=-lc_r
             fi
@@ -171,7 +170,7 @@ rm -f fake
 
 printf "Checking for iconv 2nd argument... "
 printf "#include <iconv.h>\nint main(){ const char** src = 0; iconv(0, src, 0, 0, 0); }\n" > build_check.c
-$CXX $CXXFLAGS $LDFLAGS -Werror build_check.c $LIBICONV -o fake > /dev/null 2> /dev/null
+$CC $CFLAGS $LDFLAGS -Werror build_check.c $LIBICONV -o fake > /dev/null 2> /dev/null
 if [ $? != 0 ]
 then
     printf "non-const\n"