> > * Added ACX_PTHREAD (from the autoconf
> >   macro archive) to configure.ac
> >   to figure out the right pthread
> >   options for a given platform.
>
> Hi James,
>
> I some archs in Debian build binary packages using gcc3, the following
> patch solved the problem:
>
> --- openvpn-1.2.0.orig/configure
> +++ openvpn-1.2.0/configure
> @@ -9716,7 +9716,7 @@
>                 CFLAGS="$CFLAGS -pthread"
>                 ;;
>           *)
> -               CFLAGS="$CFLAGS -pthread"
> +               CFLAGS="$CFLAGS -lpthread"
>                 ;;
>           esac
>
> --- openvpn-1.2.0.orig/configure.ac
> +++ openvpn-1.2.0/configure.ac
> @@ -284,7 +284,7 @@
>                 CFLAGS="$CFLAGS -pthread"
>                 ;;
>           *)
> -               CFLAGS="$CFLAGS -pthread"
> +               CFLAGS="$CFLAGS -lpthread"
>                 ;;
>
>
> The new configure* scripts work flawlessly :-)

Cool!  I did see that patch over on Debian, unfortunately it's not a
portable solution...  I did some fishing and found ACX_PTHREAD which looks
like it's the Right way to do this.

James



Reply via email to