Message ID | 1334932572-23645-1-git-send-email-peter.portante@redhat.com |
---|---|
State | New |
Headers | show |
On 04/20/2012 09:36 AM, Peter Portante wrote: >> From the Department of the Redundancy Department: > remove the extra pthread switch which might be there > from the package config check for gthreads. > > Signed-off-by: Peter Portante<peter.portante@redhat.com> Applied. Thanks. Regards, Anthony Liguori > --- > configure | 11 ++++++++++- > 1 files changed, 10 insertions(+), 1 deletions(-) > > diff --git a/configure b/configure > index 8b4e3c1..0038dfc 100755 > --- a/configure > +++ b/configure > @@ -2039,7 +2039,16 @@ else > for pthread_lib in $PTHREADLIBS_LIST; do > if compile_prog "" "$pthread_lib" ; then > pthread=yes > - LIBS="$pthread_lib $LIBS" > + found=no > + for lib_entry in $LIBS; do > + if test "$lib_entry" = "$pthread_lib"; then > + found=yes > + break > + fi > + done > + if test "$found" = "no"; then > + LIBS="$pthread_lib $LIBS" > + fi > break > fi > done
diff --git a/configure b/configure index 8b4e3c1..0038dfc 100755 --- a/configure +++ b/configure @@ -2039,7 +2039,16 @@ else for pthread_lib in $PTHREADLIBS_LIST; do if compile_prog "" "$pthread_lib" ; then pthread=yes - LIBS="$pthread_lib $LIBS" + found=no + for lib_entry in $LIBS; do + if test "$lib_entry" = "$pthread_lib"; then + found=yes + break + fi + done + if test "$found" = "no"; then + LIBS="$pthread_lib $LIBS" + fi break fi done
From the Department of the Redundancy Department: remove the extra pthread switch which might be there from the package config check for gthreads. Signed-off-by: Peter Portante <peter.portante@redhat.com> --- configure | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-)