--- configure.orig 2010-11-30 22:51:02.000000000 +0000 +++ configure 2014-09-13 06:33:34.000000000 +0000 @@ -975,7 +975,7 @@ cat > conftest.$ac_ext << EOF #line 976 "configure" #include "confdefs.h" -main(){return(0);} +int main(){return(0);} EOF if { (eval echo configure:981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes @@ -1461,7 +1461,7 @@ cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then @@ -1504,7 +1504,7 @@ cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then @@ -1547,7 +1547,7 @@ cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then @@ -2325,7 +2325,7 @@ else cat > conftest.$ac_ext < -main() +#include +int main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); - fprintf(f, "%d\n", sizeof(int)); + fprintf(f, "%zu\n", sizeof(int)); exit(0); } EOF @@ -2410,11 +2411,12 @@ else #line 2411 "configure" #include "confdefs.h" #include -main() +#include +int main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); - fprintf(f, "%d\n", sizeof(long)); + fprintf(f, "%zu\n", sizeof(long)); exit(0); } EOF @@ -2449,11 +2451,12 @@ else #line 2450 "configure" #include "confdefs.h" #include -main() +#include +int main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); - fprintf(f, "%d\n", sizeof(long long)); + fprintf(f, "%zu\n", sizeof(long long)); exit(0); } EOF @@ -2488,11 +2491,12 @@ else #line 2489 "configure" #include "confdefs.h" #include -main() +#include +int main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); - fprintf(f, "%d\n", sizeof(void *)); + fprintf(f, "%zu\n", sizeof(void *)); exit(0); } EOF @@ -2681,7 +2685,7 @@ cat > conftest.$ac_ext <&6 @@ -4110,8 +4114,8 @@ fi if test "$test_ok" = yes; then SHLIB_CFLAGS="-fpic" - SHLIB_LD="ld" - SHLIB_LD_FLAGS="-Bshareable -x" + SHLIB_LD="${CC}" + SHLIB_LD_FLAGS="-shared -Wl,-x" fi ;;