]> git.stg.codes - stg.git/blobdiff - projects/rscriptd/build
Ticket 37. WriteTime() changed to WriteString() and formatTime() added
[stg.git] / projects / rscriptd / build
index 65f634bdb25f824e0fb16a4d8e6c012d4d7fbc08..995a9373a541a764239701ab6850c94f23c1e184 100755 (executable)
@@ -95,7 +95,6 @@ else
             then
                 DEFS="$DEFS -DDARWIN"
                 LIB_THREAD=-lpthread
-                LIBICONV=""
             else
                 LIB_THREAD=-lc_r
             fi
@@ -159,7 +158,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"