diff --git a/configure b/configure index b7635e4fec..179496abd5 100755 --- a/configure +++ b/configure @@ -2808,8 +2808,8 @@ if compile_prog "" "" ; then : # we need pthread for static linking. use previous pthread test result elif compile_prog "" "-lrt $pthread_lib" ; then - LIBS="-lrt $LIBS" - libs_qga="-lrt $libs_qga" + LIBS="$LIBS -lrt" + libs_qga="$libs_qga -lrt" fi if test "$darwin" != "yes" -a "$mingw32" != "yes" -a "$solaris" != yes -a \