diff --git a/configure b/configure index 9b06d2b..f45b87a 100755 --- a/configure +++ b/configure @@ -162,6 +162,7 @@ printf "checking for C compiler... " trycc ${CROSS_COMPILE}gcc trycc ${CROSS_COMPILE}c99 trycc ${CROSS_COMPILE}cc +trycc ${CROSS_COMPILE}pcc printf "%s\n" "$CC" test -n "$CC" || { echo "$0: cannot find a C compiler" ; exit 1 ; } @@ -269,8 +270,8 @@ tryflag CFLAGS_AUTO -falign-jumps=1 # work anyway (issues with atomic ops). # if test "$ARCH" = "i386" ; then -fnmatch '-march=*|*\ -march=*' "$CFLAGS" || tryflag CFLAGS_AUTO -march=i486 -fnmatch '-mtune=*|*\ -mtune=*' "$CFLAGS" || tryflag CFLAGS_AUTO -mtune=generic +fnmatch '-march=*|*\ -march=*' "$CFLAGS" || tryldflag CFLAGS_AUTO -march=i486 +fnmatch '-mtune=*|*\ -mtune=*' "$CFLAGS" || tryldflag CFLAGS_AUTO -mtune=generic fi if test "x$warnings" = xyes ; then @@ -299,6 +300,7 @@ shared=no # Find compiler runtime library test -z "$LIBCC" && tryldflag LIBCC -lgcc && tryldflag LIBCC -lgcc_eh test -z "$LIBCC" && tryldflag LIBCC -lcompiler_rt +test -z "$LIBCC" && tryldflag LIBCC `$CC -print-file-name=libpcc.a || true` printf "using compiler runtime libraries: %s\n" "$LIBCC"